UTI After Sex

Every single time I have sex, I get a UTI. It always shows up about a day or two after. I get it treated and it goes away, only to show up again the next time I have intercourse. Is there anything I can do to prevent this?