State tax filing

Thank you for the reply Mary.  I'm not a tax or payroll expert.  If my W-2 reports ALL my 2022 income, to North Carolina, even though I was only a NC resident from June till the end of the year, is that not an incorrect W-2?