Sex with a UTI

Sarah
Can you still have sex if you have a UTI? I know the bladder and vagina are different and all that, but i just want to be sure i cant pass anything or make things worse possibly! Someone just help me out please? :)