Yes, it is OK to pee in the shower.
Many people including myself pee in the shower when taking a shower and there's no harm in doing so.
When you pee in the shower, the pee washes down the same drain as your toilet does and into your sewer or septic system.
The soap from showering also cleans the shower or tub when you pee in it and so there's nothing wrong with peeing in the shower.
If you need to pee in the shower, you should go ahead and do so as the shower will not be harmed and nobody else's health will be at risk either.