Sort of.
You declare the income on both returns. On your NY return, you get a credit for some (or all) of the taxes you paid to PA. This mitigates double-taxation. If your NY tax rate is higher than your PA rate, you may owe a little extra on your NY return after receiving the Credit for Taxes Paid to Another State. This credit will be prominent in your NY return interview.
Work on your PA return first, so the amount you pay in taxes on that return can flow to the NY resident return. The tax you pay to PA may be close to what's on your W2. If you have a refund from PA, the tax you paid is the withholding less that refund.