If you work in
Rhode Island that would be correct, you pay tax to Rhode Island for the money you
earned in Rhode Island.
Because you are
a Massachusetts residence you report
and are taxed on that income in Massachusetts, however, on your Massachusetts return you can get a credit
for taxes paid to Rhode Island.