State tax filing

I AM a resident of mass but worked fulltime in NH. Do i have to pay income taxes to Mass despite all earned income coming from NH?