I started a new job in a different state at the end of the year, but didn't receive my first paycheck until 2017. Do I need to file in that state for this year?

New state is PA, old state NJ