Single mom joining military

I’ll recently be a single mom. My husband is getting out of the military and we’re divorcing. We have two kids. My MIL is very supportive and would be willing to keep the kids while I go to Basic and AIT. I’m wondering if I’d be able to join the military?