Yes. As long as the loan was used to pay the costs of attendance at an eligible educational institution and the other eligibility requirements are met; the deduction is available for the interest on the loan. The deduction does not depend on whether the loan is federally guaranteed or subsidized.