Can I get my PA real estate license if I'm not a PA resident?

Yes, you are not required to be a resident of Pennsylvania in order to obtain a Pennsylvania real estate license.
However, your sponsoring broker must hold a Pennsylvania broker's license. You will also have to obtain a criminal record check from your local State Police Department.
If you hold an active real estate license in Arkansas, Georgia, Louisiana, Maryland, Massachusetts, or New York, you have the option to apply for reciprocity.