Even if that's true legally, what a dumb decision tactically. Killing surrendering troops means fewer surrenders and results in more deaths for your side.
Morally, you're also killing someone with no intent on harming you who isn't an immediate threat. Sure, its not quite straightforwardly wrong, but it sure isn't right.