Fired at the muzzle, a representative 5.56 NATO load (4 g, FMJ, 920 m/s) reaches roughly 328 mm (12.9 inches) into pine wood. That is enough to defeat a typical barrier of this material — treat anything behind it as exposed.
Construction pine — a 2x4 stud is ~38 mm thick.