Bath while on your period 🛁

Is it healthy to take a bubble bath while on a period? I don’t usually do it but my back hurts really bad and I think the warm water would help. But I don’t know if it’s safe or something like that... idk I’m just wondering