Taking a bath??

Can I take a bath even though my cervix is starting to dilate?? I'm 36 weeks & 3 days.