Damn right! That's why pirates got extinct for a very long time... and are only now re-emerging in the gun-free liberal era (where victims can't fight back + liberal sentences are a joke... makes you wonder why there aren't MORE pirates out there, lol! After all, it seems to be a very safe profession nowadays.)
I have an uncle that spent his whole life on ocean ships... they usually start off in Europe, then go to Africa and then either the Americas or Asia. None of the ships he was on over many decades carried ANY armament, their directive was to avoid all confrontation at all costs (apparently, that applies to all commercial fleets - I don't know under which laws though). How very socialist! My uncle also thinks that policy is BS and doesn't feel safe at all when near danger zones, but would certainly lose his job if he was packing heat and anyone would find out. If I were on one of those freakin ships, I'd always have an SKS or CZ stashed away in my cabin - or a Dragunov/AK, if the ship was registered outside of Canada (even better!). In such a situation of constant piracy danger, I'd certainly say "screw their stupid fleet procedures and maritime laws, my life is worth more than a piece of paper with some writing on it". After all, pirates don't obey it and nothing happens to them (most of the time, as usually they just get released free without their guns when caught).
That said, I would never settle for being like one of those poor fools sitting in the galley of their own ship with some stinkin' pirate pointing an AK barrel at their head... and demanding ransom on CNN!
Beeh... beeh.. beeh... (sheep sounds)
P.S. I saw my uncle just a few months ago and we had a very long talk about this matter, since it is very current these days and I'm into firearm collecting/target shooting. He told me that a commercial ship's best defense is range. The speedboats can't keep up with them in the long run, simply because they don't have enough fuel to get back to shore. This is why ships will tend to stay away from the coast or any large 'mother ship' that may be lurking on radar in a danger zone. That strategy works *most* of the time (unless someone falls asleep at the switch), but there are no guns on board... with the exception of a possible 9mm pistol that the ship captain may or may not carry (to counteract a mutiny, perhaps? Definitely not for pirate defense).