Depends which ship you are talking about. Unless you inform us of that basic fact, none of us can help you!
Which cruise line? many will allow you to do this through theri website but some you just do this at embarkatio.
Can you give us a clue as to which cruise line please.