Does the pill work if I got sick after it was taken???

Brittany • Britt
So I've been taking yazmen for two months now. I take it at 2 o'clock everyday. Yesterday I took it at 2 o'clock as usual but I've been ill lately. Some time later I threw up. Idk if I the pill came up too or not. I'm probably going to wait until I'm no longer ill but if something were to come up would I still be safe? Or could I possibly get pregnant?