Shorepower supply can be less than acceptable, especially in remote ports where there is little or no code or enforcement, or there is just no funding to upgrade equipment.
Or due to a nearby or direct lightning strike.
I would be significantly more inclined to use a surge protector on the boat to protect computer or other sensitive equipment than at the home, where the power is stable. Other electrical equipment IE: coffee maker would not be a concern.
However, as others have stated, it must be good equipment, like all boat equipment. There are industrial surge protectors that are used for office equipment, computers, etc., that are robust, functional, and reasonable in cost. IE: An Innovolt Power Manager (picture).