In most countries, carrying a weapon on the boat is legal if you have a legitimate gun license.
Although these laws will vary according to your location, they are equivalent to traveling with a gun in the car. Carrying certain firearms is illegal. Meanwhile, some can be acceptable.