Am I okay?

I take my combined BC pill every night at 10. I take my pill everyday around the same time. Anyway, a couple days ago I must’ve had something bad to eat because I had diarrhea around 12:30 the next morning (2.5 hours after i took my pill) AM I STILL PROTECTED?