Sick and on the pill

Is it okay to throw up 11 hours after you have taken the pill? I am sick and I have been needing to throw up but I'm afraid of throwing my pill up