on the pill for 2 weeks

I’ve been on the pill for two and a half weeks. How long does it take to be completely protected? and if my boyfriend comes inside me, does the pill really protect me from getting pregnant? sorry, first time 😰