Yes, when something reduces damage from an attack (namely, Shield), it is specifically referring to a figure making an "Attack" and flipping over an attack modifier card. If you are reducing or negating a "source of damage," that can be anything: attacks, traps, hazardous terrain, retaliate, wound, suffering damage from choosing a different card to lose when short resting, or any other "suffer X damage" text.