After sex, I feel like I constantly have to pee. Is it a reoccurring UTI?

After everytime I have sex, I feel as though I constantly have to pee, like I have a UTI, but it doesn't hurt to pee and it goes on for a couple of days. What could this be, and how can I stop it?