From what I know, there are some resorts that offer one-day courses for those that want to try out scuba diving. You can check with the cruise company if they offer those to their guests. Personally, I'd recommend that you get certified first before you go out to the cruise. At least that way, even if the cruise company don't offer those one day courses, you'll still be allowed to go scuba diving.