when to worry about pregnancy?

i’m on the pill and I’m really good at taking it. i’m not sure my boyfriend pulled out in time last time. should I be worried? when should I worry i’m pregnant while on the pill?