Business & farm

Thanks I read it can you confirm my understanding. The s corp was profitable in 2021 so if treated as a loan, the repayment is not taxable because they have enough stock and debit basis?