Birth control pill

I been on the pill but I was also giving antibiotics for my tonsils, will the antibiotics counteract the pill? Me and my boyfriend been having unprotected sex but my mom told me yesterday that and we need to be careful.