maine taxes for nh resident

I live in NH, worked in NH until May. I then started a job in Maine. My tax return for Maine includes the income from NH based on the accountant. Is this correct?