If you use the MCLR pin, then yes. The example in the book does. The MCLR pin of the PIC (generally) can not drive a load and therefor requires a pull up resistor to provide that function. Other pins CAN drive a load and do NOT require a pull up resistor.