Can you mount pegboard on drywall?

Yes, you can mount the pegboard on drywall but you will need a 1/2 inch gap between the wall and the pegboard.