Can the business repay some of the loan even if it doesn't make a profit

Can a business repay  a loan made by a partner even if the business has a loss at the end of the year