Help birth control question

Could you get pregnant if you're on birth control but were taking antibiotics for 10 days and 3 days after it was done you had sex? My period was done the same time the antibiotics were done so ovulation shouldn't be so close either.. thanks to anyone for their help