Every medicine have different pharmacokinetics -means take time to absorb , distribute in the body and different metabolic rate and excretion rate .
So if vomiting happened just after taking medicine in the form of Tablet and if Tablet is come out from mouth then that medicine doesn't do any effect on the body .
If vomit not happen then every medicine exert effect on the body .
Next Steps
Take consultation for any bad effect of you feel .