Gov. Josh Shapiro signed "Paul Miller's Law" on Wednesday.
It is named after the 21-year-old who was killed by a distracted driver in Monroe County back in 2010.
The legislation allows police to issue tickets to anybody using a cell phone while driving.
While texting while driving is already banned, this new bill targets simply holding your cell phone while behind the wheel altogether.
Drivers would face a $50 fine but no points would go on their license if they are ticketed.
However, warnings will be given out for the first year.
There would be exemptions for operating devices in a hands-free mode so drivers can still use GPS or to talk.
Pennsylvania joins 26 states, including New Jersey and Delaware, to make using handheld devices illegal while behind the wheel.
The bill also promotes education efforts by requiring minors to learn about distracted driving.