Yes that's basically how it works. When a corporation holds a loan as an asset on their balance sheet, they're supposed to mark that asset to market reflecting the risk of default. But if marking to market isn't actually enforced by auditors or regulators then the company can pretend that the asset value is the same as face value. This can appear to work for years until there's a recession and a bunch of borrowers default.