> If your screws are longer than 2”, you’ll need different ones, otherwise they will poke out the top of the board and stab you in the foot.
Actually nominal 2 inch lumber has thickness of 1.5" [1]. So your screws should be shorter than 1.5".
[1] https://www.archtoolbox.com/materials-systems/wood-plastic-c...