Threw up ?

I usually take my pill at 10 each night, I woke up around 5-6 in the morning with the stomach flu and threw up. Was the pill absorbed and am I safe ?