Yes. Pennsylvania is one of the most progressive states in the country when it comes to gambling. It is the second biggest hub of US gambling. Horse race betting has been fully legal in PA since 2004, and most casinos with slot machines have been legal since 2006. Other table games have been legal since 2010.
In the last few years, slot machines at smaller locations, satellite casinos and online casinos have all been made legal too!