If it’s been two or more hours since you took your pill, the medication has successfully entered your system and will be effective. There's no need to worry–you're in the clear.
If you vomited less than two hours after taking your pill, you should consider it a missed dose. Your next step depends on a number of factors. This quiz is a great resource for figuring out what to do next: https://bit.ly/3htH61z