State tax filing

Thanks.....just so I understand, I worked in NY for company A from January to April.  I then moved to MA on 5/1 and lived and worked there at a DIFFERENT employer (company B)  for the remainder of the year.   So, for the page/question that states "Pay tax to another state," I should answer "No," correct?