I had unprotected sex last night, I’m on birth control

Patient: I had unprotected sex last night, I’m on birth control. Today I went to my clinic and ended up having a uti if I take the antibiotic will it affect my protection from last night

Doctor: