Your pegboard should have about ½ inch (1.27 cm) of space behind it so that you can install hooks. If you get a ready-made pegboard with a frame, that space should be built in. Otherwise, you’ll need to create that space by building a frame or adding screw-in standoffs with spacers.