Did the Pill work?

So I wanted to have my boyfriend of 3 years cum inside of me on Sunday (something he also wanted). He did and I took the take action pill immediately after. Thing is, he did this the day before my fertile window and I just had my period a little more than a week ago. I was a little nauseous a couple days ago, my stomach hurt last night, and I slept almost all day because of a splitting headache (still kind of have one). I woke up and went to the restroom to find this:

Did the pill work? It’s only 5 days after him and I did it and I took the pill. I’m hoping that’s the case, I’m just a little scared since this was our first time doing this (including without a condom).