Are 401k contributions earned in New York State taxable in pa? I live in pa ...work in nys.

Live in pa but work only in nys.  W 2 has d code with an amt contributed to 401 k plan at nys employer.  No pa withholdings...only nys.   Do I have to add this 401 k amt to  wages on pa return