Just started having sex... Now UTIs. Advice?

Gloria
My BF and I recently started having sex (4 months ago). I was a virgin before that. I've been getting recurring UTI after sex. Any advice on how to avoid?