Come on! Pirates used muzzle loading smooth bore pistols that fired musket balls. They'd be accurate at about a distance of, oh, eight inches or so. The samurai would make a pincushion of the pirate before he could hit the samurai.
Think before you post people. This is a serious discussion of the relative merits of various modes of combat.

.