If a soldier was given an order to gather civilians and shoot them dead he would be in trouble for doing it.
If he did that then he would be in trouble regardless of who was president.