Can a Non-Resident Deduct Student Loan Interest in MA

I'm doing the taxes for my child who lived in one state and went to school in another (MA).  I've completed the Federal return and have moved on to the MA state one (first) since that is non-resident.  The software is allowing me to take a student loan deduction in MA but... is that correct?  Not sure if it matters, but their earnings were about 65% in MA and 35% in their home state.  Just want to make sure I am doing things right.  TIA!