You can use money that you borrow in order to calculate the deduction but you cannot claim a deduction or credit based on expenses paid with tax-free scholarship, fellowship, grant, or education savings account funds such as a Coverdell education savings account, tax-free savings bond interest or employer-provided education assistance.
FORBES: Back to School: Tuition and Fees Deduction