Uti and sti

Can you get an sti when you have a uti and have sex?