(24 weeks) accidentally made bath water too hot, sat in it for about 2 or 3 minutes before I realized I was kinda sweating, put the cold water on. Is this okay?

I didn’t mean to, but i guess I didn’t realize how hot I made the water. Oops, has anyone else accidentally done this? I was only in it for 2/3 minutes.