As a general rule, when one corporation sells or otherwise transfers all of its assets to another corporation, the purchasing corporation is not liable for the debts and liabilities of the selling company unless the debts are specifically assumed by the purchaser.
When starting a business the legal form you choose will have a significant impact on how your company will run, be taxed and protect you from liability.