uti info help

What are the chances of not getting pregnant by having a uti?

Realized I had one, when he brought up I was going to the restroom often and them I realized I was as well. Good thing I had a doctor's appointment coming up. What are some thing's to do to avoid getting a uti??