Yes, you can get married if you are arriving via cruise ship just for the day at any of the ports in either Ocho Rios, Montego Bay or Falmouth, now kingston given the necessary required documentations are submitted prior to your arrival.
However you would have to already or been married in your country if you plan to do this on the ship at sea so this can only be a vow renewal.