1042-S MA State Question

Hi 

My spouse is on F1 visa and have got 1042-S(form for income tax treaty).

 

We are filling taxes jointly, so he might be considered resident alien for tax purposes. 

 

While filling the MA state taxes , Can we enter the amount on the 1042-S  in the Qualifying Student or not

 

1042-S Q.png