Massachusetts will tax you on any capital gains you may have realized on the sale, so it depends on whether you sold it immediately after inheriting it, or held it before selling.
If you have capital gains from the sale, yes.
If there is no gain, no.