when does the pill start working?

i started the pill on the 4th of december (first day of my recent period) after being off it for a year. however this time i was put on the mini pill (haven’t missed a pill, however did have gastro middle of last week). me and my partner had sex last night without a condom however he pulled out. the pill surely would be working by now right? 😳😬 lol