Yes, the assets of a company are supposed to be liquidated and distributed to the creditors (if any) or otherwise to the equity holders of the company.
As part of the plan of dissolution, the company can "sell" its assets (including source code). If there are no creditors and none of the other shareholders care, you could "buy" it, most likely for almost nothing.