Unfortunately no. The US led an international initiative back in the 19th century to ban the practice of allowing sea captains the power of life and death. Pirates have to be taken to a court on land now. The sore spot for the US back then was the British preference for hanging pirates on the islands of the North Carolina Outer Banks.
Maybe you can’t hang them. But i see no problem with marooning them. Find some small antartic island, and put ‘em ashore with some food and sleeping bags. Sail away,, when you get to Japan, notify the Aussies where they are (if you think about it.)