Yes. Online gambling is legal in Pennsylvania. Only the websites and apps approved by the Pennsylvania Gaming Control Board are legal and regulated, however.
Legal options include online casino games, sports betting apps, poker, daily fantasy sports, and online lottery.