Can the military dispense justice?

Can the military dispense justice?