It is legal and possible, they just do not float like a dedicated Icom or Yaesu marine/LMR device. I worked in the oil industry and we had Motorola PR1500 VHF radios programmed for both commercial band channels and some Marine VHF....work great.
But dedicated Marine VHF handhelds always had simpler controls, larger displays, and then when Digital Selective Calling (DSC) became popular, that function meant you were better off with two radios.
If I still had a boat, my handheld would be an Icom IC-M94D. Then, the UHF XPR7550e I use for GMRS would be the second radio. (I second the Yaesu comment above - even though I still own a few).