If you have an automatic gearbox, apply the handbrake first, then put it in P. This ensures that the car's weight isn't resting on the parking pawl. If you don't use the handbrake, you'll be putting constant pressure on the parking pawl and transmission components which will eventually fail, leading to costly repairs.