Sorry, it wouldn't solve anything, it would just mean that he was a murderer.
If you killed enough of them, and if the probability of being killed versus success as a pirate was high it would.
Your only a murderer if its a illegal killing, just need to make sure your government crosses the t's and dots the i's before hand.