Folks have installed them but care and work is required.
Fiddles to keep pots from sliding off , or at least mounts for springs to keep pots in place , as even anchored in a quiet cone , idiots run boats.
The range is always best against a bulkhead ,not the hull, as an errant pot going left or right is less hassle than one coming tight at you.
Many marine ranges have different style operating valves , the valve turns on to full high and rotating lowers the flame to an adjustable minimum . The minimum flame is one that wont blow out with a port or hatch open.
The propane solenoid should be hooked to both a mechanical timer , an off on switch ,and a light of some sort to remind you the range is o
A 2 hour timer is no big deal , even with a big dinner.
The oven should have a pilot light hooked with the thermostat for operation.
Can it be done , sure , but its a bit of a hassle.