That statement is true.
Whenever a profit or liability created by the company, it will spread accordingly according to the percentage owned by the shareholders.
For example, if Andy has 30 % ownership and Amy has 70% ownership and the company generate $1000 of debt, Andy will be liable for $300 of it and amy will be liable for $700 of it