If you are obligated to the pay loan and you in fact did pay the loan, then you can deduct the interest that you paid as long as other qualifications (such as income limits) are met. The loan does not have to only be paid by the student.
Take a look at the following TurboTax article to learn more:
Can I claim my student 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"