UTI Sex

What happens if you have sex while you have a UTI? Is it possible that your antibiotics will become ineffective?