Birth control and diarrhea...

So I took my pill at 7:30 ish this morning and it’s currently 2:35 and I just had to go to the restroom as my stomach has been killing me all day and it obviously was diarrhea.. has the pill been in my system long enough?