It is if the water is too hot! otherwise, if it is comfortable for you and pleasurable to you and you do not do this for an extended period of time, there is probably no harm to you from this.
You may have some drying and chaffing and could have some other irritation. You may need to apply some moisturizer to the area afterward. Make sure the water and the tub are hygienic! stop if concern.