Yes, if you pay the expenses with money from a loan, you take the credit for the year you pay the expenses, not the year you get the loan or the year you repay the loan.
**Say "Thanks" by clicking the thumb icon in a post. **Mark the post that answers your question by clicking on "Mark as Best Answer"