Is it possible to add the Protection Against Evil spell to the list of spells of a ranger?

I am working on a construction and am wondering if I can enter the Paladin Prestige earlier via Ranger. One of the requirements is the ability to launch protection against evilso I was wondering if there was a way to add this spell to their list.