It's a good habit to engage the parkingbrake, especially when you're parked on an incline.
Ask any car owner who's car has ever slipped out of " park ", rolled down the incline & caused some major damage.
There is just a small pin/cog engaging a slot in the transmission when you're parked.
NOT something I would trust!