Yes. The fact that you took out a loan does not disqualify you from claiming the deduction. YOU were still the one who paid the tuition.
If you, your spouse, or your dependent enroll in and attend a New Jersey institution of higher education, you can deduct up to $10,000 for tuition costs.