Fired at the muzzle, a representative 5.56 NATO load (4 g, FMJ, 920 m/s) reaches roughly 387 mm (15.2 inches) into drywall (gypsum). That is enough to defeat a typical barrier of this material — treat anything behind it as exposed.
About Drywall (Gypsum)
One sheet of interior drywall is ~13 mm; a wall is two sheets and a gap.