In the modern merchant navy, incidentally, I think it's a requirement - and has been for most of a century, that to fill a command position, you have to be qualified to do the job above you. So, a first mate has to hold a masters certificate, for example.
Not a legal requirement under IMO STCW regulations, but widely practised in the better-run Merchant maritime fleets