Am I okay?

I had unprotected sex withmy boyfreind and he pulled out. I threw up my birth control about 30 mins after taking it, could I get pregnant? Or will I be fine and take my next pill on time? Do I need plan B?