LANCASTER, Pa. (WHTM) – A new poll shows a growing number of Pennsylvanians favor the legalization of medical marijuana.

The Franklin and Marshall College poll released Thursday found 87 percent of registered voters think people should be allowed to use marijuana for medical purposes if their doctor prescribes it.

Forty percent said marijuana should be legal for recreational purposes.

Support for medical marijuana grew three points since an F&M poll in June 2014, when 84 percent of voters said it should be legal. In January 2014, 81 percent said doctors should be permitted to prescribe marijuana to their patients.

Support for recreational marijuana was up from 35 percent a year ago.

The survey also found 49 percent of Pennsylvanians favor Governor Tom Wolf’s moratorium on the death penalty, while 37 percent oppose it.

Nearly two in five, or 39 percent, believe Wolf is doing an excellent or good job as governor.

The survey of 556 registered voters was conducted June 8-14 and has a margin or error of plus-or-minus 4.1 percent.