You can leave the ship with a transit pass in hand, meet your friend who will go through the entry process and the two of you can walk on the ship together. While he or she will need to show passport, vaccine card, and negative test results, all you will need to show is the transit pass but I would take my passport with me when I leave the ship just in case