The geneva convention never exonerated soldiers for committing crimes, especially against civilians. In fact the main point of the geneva convention is to establish rules during war so that civilians, prisoners, etc. are protected.
Following a blatantly illegal order is something punished in every country. It's just basic logic.