What kind of drone? If you're running an ardupilot FC then you could presumably have "home" locked to the GPS co-ordinates provided by your base station (laptop) on the boat. I'd be very careful and have descent rate set VERY low so you could take over and correct the flight path if it's descending in the wrong place.
If it's an "FPV" style drone then almost everything will be manual so landing/return will be on you to do it right.
If it's DJI, the standard controllers don't have a GPS RX. All they do is remember where they launched from. As others have pointed out, not a great option on a boat because the boat moves. However if it's DJI, you'll be breaking the law because:
Max drone weight for flying without a permit (including battery) is 0.55 lbs in Mexico. They require a permit to fly a drone larger than that, and they only issue permits to citizens. You may very well get away with it, but I personally am very risk averse and wouldn't do it. 0.55lbs is VERY small. DJI's mavic 2 is almost exactly 2 lbs.
Mavic mini is .549 pounds, designed to get under the .550 limit. But not sure if that distinction will always be respected.