This will vary depending on the ship and its crew and captain. Generally, the boat is considered a floating hotel and restaurant/bar, therefore bringing your own beverages is not permitted. Some crews and captains allow you to bring wine onboard but charge a corking fee. Please ask onboard the ship for the appropriate protocol.