At what point does the birth control pill protect you from getting pregnant?

Ale
So I started the birth control pill (to be exact, I'm on my first packet and on the 18th pill) and I was wondering at what day, week, or packet will the pill start to work, as in protect you from not getting pregnant when you have unprotected sex?