Yes, they qualify if you must repay the loan. The credit is claimed in the calendar
year in which the expenses are paid, not the year in which the loan is paid.