NO, DON'T DO IT THAT WAY. If you sell the S Corp, you should close the corp bank account. Put the money in your personal account, and report the sale of the business as a capital sale of an investment property.
If, on the other hand, you sell just the business equipment, for example, and plan on keeping the corp going to do something else, then you could put the cash into the corp account, to use in the business. Then if you decide to take some of it out personally, take it as a distribution.