I did the opposite. I agreed to increased spousal support knowing that it was offset with an unbalanced 401k distribution. The way the L explained it to me is that the courts will essentially let you do whatever you want as long as you agree to it.
My w would rather have the income and I preferred the savings, so it all worked out.