As I mention, it is possible for the military and the state to prosecute the same charges.
But this is not common.
There are several reasons for this, one is that there are service regulations that limit how a service can prosecute a service member after the state has prosecuted the service member. But more important is the idea of efficiency. It takes time and money to prosecute a criminal case. If the state is going to the trouble, typically the service will not...and vice versa.
If you are in the criminal process with the state, it is likely the military will allow that to play out and not prosecute you criminally.
Not to say they will do nothing...they may...or they may take action to separate you administratively. They can separate you prior to the state's case being complete. Not that they have to...if the state case will wrap up quickly, they may wait to see what happens.
So much depends on what the state is doing and how long that will take.
IF you have felony charges pending and it will take months to resolve, it is likely the military will separate you...they will process you out (either with a general or with an OTH discharge
If the charges are expected to resolve soon? They may wait to see how they resolve...if you can escape with no conviction or with a conviction to minor offenses? Then the military may elect to retain you.
Much will depend on your local commander (your squadron or battalion commander
They will decide how best to resolve your case
If you are going back to your old command, I would contact folks in your command who can say good things about you...that is what you need now...folks who will tell the commander you are a good soldier
/Marine/Airman/Sailor...if the commander has good input regarding you, they are more likely to give you the benefit of the doubt and cut you a break, so to speak
Let me know if you have more questions.