Retirement tax questions

The principal payments on loans are not tax deductible, and that's why the business will be showing a financial loss for 2023 (payments on business loans). Since we cannot deduct these business loan principal payments on our taxes, the business will show a NET profit for 2023, thus allowing me to contribute to my 401(k) plan. Thanks!