Welcome to HCM,
Doxycycline is known to cause stomach upset
,it is not clear for how many days you are taking this drug.
As you vomited it would be prudent to repeat the dose and please take after some light food and with i glass of water.
You can complete the course,although it also depend on condition for which it was prescribed.
If possible you can consult your doctor .
Please take care