Birth control vs. antibiotics for a UTI

Patient: I have a uti infection and i am on my period so im not pregnant. im on birth control but will be taking a antiobiotic while being on birth control. i dont plan on having intercourse while being on this antibiotic. as long as im not, will i be safe from pregnancy?