How effective is birth control?

I might be so dumb asking this but I had been a little inconsistent on time frames of taking my birth control but still took it everyday. I had sex without a condom where he said he pulled out and at that point I was on like my last pill before the “period week”. If I still continue to take those pills does the birth control still work? And I should have nothing to worry about right?

Sorry it’s a dumb question American sex ed has failed me lol