Sex in the shower

Me and my boyfriend wanted to have sex but I was on my period so the only safe way of doing with messing everything was in the shower... But we started talking and we came to a question, is it okay to use a condom when having sex in water?

Thank you!