Only your L can answer that one.

During my D from ex-wife many years ago, I had cashed out my 401k because she was getting garnished for unpaid student loans. There was not other way to resolve it at the time. She left me 3 months later. I didn't get a dime.