Not to belabor the point there is significantly more danger to the entire crew of a vessel being struck by enemy fire than a base or even a land-based vehicle. Two of the five US Navy vessels (that I can recall) that have suffered significant damage from enemy attack since the Vietnam War suffered significant casualties as a result, unfortunately with casualty rates similar to that suffered by some of the worst hit land combat units of similar or larger size in Iraq and Afghanistan:
USS Stark - Struck by two Iraqi Exocet ASCM's in 1987 - 37 killed, 21 wounded out of a crew of ~225
USS Cole - Struck by ship-borne IED in 2000 - 17 killed, 37 wounded out of a crew of ~280
And yes, several of the weapons the Huthis have been shooting off can cause significant damage to a ship if it strikes one.