Whether diarrhea affects your pill depends more on severity and duration rather than how soon after you took your pill. If your diarrhea continues and is very severe like more than 5-6 trips to the bathroom in 24 hours then it might be considered a missed pill