Just a heads up, this post could use a trigger warning for eating disorders...
To echo what was said above, vomiting doesn’t impact your pills efficacy if it happens more than 3 hours after taking it. And if you would happen to get sick and vomit within 3 hours of taking your pill, you can always just take another one to replace it and then you will remain protected.
Some other info that may be helpful to you is that diarrhea can make the pill less effective if it is severe {OOZvMPx2A}