Pill effectiveness.

It's fine to vomit or have diarreah say in the morning before I take my next pill correct? For example if I take my pill at 3pm and I vomit or have diarreah around noon before I take my pill, and I took my previous pill the day before I'm totally covered correct? Just need some clairification