Migraine and vomiting. 16 weeks?! Help

So before bed I Was suffering with the most monstrous migraine ever and it caused me to be sick twice :-( its now 4am and ive pretty much woken every hour still with a pounding headache and just threw up again. Is there something wrong? Is baby okay? Feeling worried