State tax filing

Does it matter that I was not a PA resident the previous year (when the loss on the rental property occurred)? I was a resident of MD the previous year and so I did not file a 2019 PA return.  Should my question then have been, "I have carry-over losses in a state I no longer reside in, am I able to get the benefit of those losses after moving, or are they now gone forever at the state level?" (Assuming MD allows for carry-over losses)