Is the minipill still effective?

Hi

I had diarrhea this morning at 6, my pill is due at 11. I am worried if the pill became ineffective, and i had unprotected sex in the last 2 days. What can i do?