Fired at the muzzle, a representative .357 Magnum load (10.2 g, SP, 395 m/s) reaches roughly 205 mm (8.1 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.