Scared of having sex

Has anyone gotten a UTI and have been afraid to have sex? If so how did you overcome the fear?