Help!!!

So I think I have a starting of a UTI so my doctor called me in a antibiotic, but I’m scared to take BC the last couple days my husband and I had unprotected sex and I’ve heard antibiotics can make the pill less effective. I’m just scared I’ll get pregnant bc sperm can stay alive for five days in a woman and my husband did cum inside me the last two days.