In 2018 i lived in pa and worked in nj do i have file state tax in both states

I did pay pa state taxes