Almost. You have to structure it so it is a stock sale. BUT when you dispose of the depreciable assets you may have to pay recapture tax on excess depreciation.
Depreciable assests would be like office equipment, buildings, vehicles, etc that you may have taken depreciation on, during the course of your business.
Depreciation is a deductible business expense. The IRS considers that business and individuas in business activity circumstances realize a profit from taking depreciation. So when you sell the business and dispose of the assets, the IRS recovers a portion of this by what is called recapture tax.
Depending on how it was depreciated and when it was placed into service, depreciation is taxed as:
or recapture tax at 25%
You may find resources at this link helpful.