Peeing after sex?

I'm a virgin but I've seen on here a lot that you need to pee after sex to prevent a UTI. Is that just with unprotected sex or just sex in general? Do I need to try to make myself pee even if my boyfriend wears a condom?
(I might be losing my virginity soon, and have no one to talk to about this stuff personally so thank you in advance)