Missed pill or no?

If after 5 hours of taking an active pill you have diarrhea does that mean you missed the pill or no it's still in effect??