throwing up and pill

I took my pill at 8:00 PM and got pretty drunk and threw up at 1:40 AM. am I still protected?