You can be charged for using your phone while on a cruise ship, even if it's unintentional. Most carriers will send a text message alerting you when you are roaming. Aside from that, it's your responsibility to ensure that you have adjusted your phone settings to avoid roaming charges. Do yourself a favor, and set your phone to airplane mode before you step on board.