Yes and no. Poking holes in puff pastry (also referred to as “docking” or ”venting ) helps prevent it from puffing up by releasing steam as it cooks. Common recipes that would require docking or venting would be when you are blind baking the pastry or making a pastry with a larger filling.