Can I get pregnant?

Nayy
So me and my bf had sex the 22nd of this month I took the pill afterwards but then the next day the 23rd we had sex again but this time I didn't take the pill and we didn't use a condom. He didn't cum in me. The question is can I still get pregnant after the pill or does the pill still work a day later?