Baths while pregnant?

Is it okay to take a hot bath while pregnant? I’ve heard that you can’t, which bums me out a bit 😂