No, it would be very unwise to spend all of your money before a divorce. The court could see such a move as an attempt to deprive your spouse of a fair share and would consider penalising you.