already underweight and losing more

So when I found out I'm pregnant I was well aware of the fact that I was already 20 pounds underweight I've been experiencing severe vomiting constantly for two weeks now and the effects are worrying both me and my husband since I've lost another ten or fifteen pounds our only option before hospitilization is nutrient shakes is this safe for my baby?