Is it ineffective?

I took my pill at 6:30 and had some diarrhea at 10:45. Was it in my system for enough time?