That’s up to the JAG when they pass down a sentence. But many times, if you’re in the brig, you do lose pay. Otherwise, The last thing you want to do is get in trouble In the military, because once you get out, that will be a permanent part of your DD-214 which is going to follow you around in civilian life forever.
Ugh… :-(