sex causing uti?

for a few months I've been sexually active but just this past 2 weeks I've been using condoms and I've had a uti since the last 2 times, could it be the condoms or what? any advice helps