Having UTIs

Ok so everytime I have sex, I'm so afraid I might get a UTI because the first time I did, I didn't know about peeing afterward and I had the worst UTI known to mankind. So when you have sex, are you absolutely supposed to pee every single time you do it or what?!