The device will not work while you’re out in the open waters.
But, the closer you get to land, the more likely your device will be able to pick up a terrestrial signal and allow you to connect to the internet. Please note that even if your cruise advertises mobile connectivity on board, it’s most likely satellite-based, and will therefore not work with the Portable Hotspot.