Yes, According to the Massachusetts Department of Revenue, "If you're a nonresident of Massachusetts, you must file a Massachusetts Income Tax Return if you received Massachusetts source income in excess of your personal exemption multiplied by the ratio of your Massachusetts source income to your total income, or your gross income was more than $8,000 – whether received from sources inside or outside Massachusetts."
See the link below for more information:
Personal Income Tax for Nonresidents