If you engage in sexual activity with an infected person, germs that cause UTIs can move from different areas such as the vagina to the urethra. To protect yourself, you can use spermicides and condoms or birth control diaphragms. The reason is that spermicides can also kill good bacteria that are meant to protect you from germs such as UTIs.