masturbation uti

can I masturbate when having a uti?