You have to submit proof of citizenship before you board. In theory, you can be required to be checked by immigration when you finish the cruise, but they just do a face ID check now. You generally don't go through an immigration check for port stops.