could i get pregnant ?

i take the pill. i missed the 12th pill and doubled up the next night. i was bleeding for a week and now i’m coming to the end of my period week. my bleeding was extremely light today so i had unprotected sex with my boyfriend. it looked like he pulled out in time, but i’m still nervous...