I've had four UTI's, and I've never had sex. I do everything I'm supposed to do, even drinking cranberry juice (which I found out I love), and I still get them. They suck a lot, but it's awkward to tell people you have one. Once the medication I got gave me a huge rash all over my body. I was covered in red spots, and it was on the night of my eight grade dance. Needless to say it was an interesting experience.
Aw man, that is the worst! I am sorry to hear it. I got my first one when I was 16, when I was working at Starbucks. It was during a Christmas rush. My manager was flipping shit because I kept going to the washroom and eventually I broke down and told her it felt like my bladder was dying. I had no idea what a UTI was! She immediately sent me to the doctor, all transgressions forgiven. It was a shitty afternoon, but oh the sweet relief of antibiotics.
I got another one, a few years later, after driving for an hour to find a place to have sex in a car, then doing so and driving an hour back. I had needed to pee since a half hour into the drive. I had nowhere to do so. It was a dumb move.
Don’t hold off going to the washroom if you have to, when the moment arises! You may worry about spoiling the moment but, just like getting a condom, the alternative can be a lot worse.