Maybe threw up pill?

I took my pill at the usual time and I’m not sure how much later/ if the 2 hours had passed because I fell asleep, but I threw up and I’m not sure if I threw up my pill. I had unprotected sex that night prior to taking the pill (he didn’t ejaculate inside me) and we didn’t have sex again for another 4 days and I took my pill every day at the same time. Am I okay?