Plan B

I was sexually assaulted and took a plan B pill the next day but I threw up like 45 minutes after, will it still be effective?