Fired at the muzzle, a representative 12ga Slug load (28.3 g, SLUG, 500 m/s) reaches roughly 172 mm (6.8 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.