Birth control question

If I took my pill last night at 10pm and threw up (more than once) at 8am, would I still be protected during the day?