I live in Massachusetts, but I work only in Rhode Island. Do I have to pay taxes in both states?

Thanks!