Yes and no.
On the one hand, as I view it, a military court martial exists both for the purpose of justice AND (and this is a big and) protecting the military from harm.
This can be both a good and a bad thing, depending on the situation.
For example, it could be a good thing if an officer was accused of a sexual assault against a junior, yet not enough evidence existed to convict the officer - the courts martial could decide to kick the officer out of the military anyway, because said officer would on the one hand, never really be trusted again, and on the other, reflect badly on the organization.
It could be bad if they decided to cover it up somehow, again for the purpose of protecting the organization. Or for political reasons, in either case.