Yes. Fiendish Chain can be activated directly from the Graveyard when your opponent declares an attack with a monster.
You cannot activate it from your hand or field. It must be in the Graveyard. This makes it a "graveyard trap" akin to D.D. Crow or Ghost Belle & Haunted Mansion—you need to mill or discard it first (e.g., via Foolish Burial, Cards of the Red Stone, or monster effects).
Once activated, the attack stops immediately, the monster is destroyed, and Fiendish Chain remains banished. A powerful defensive tool for decks that can stock the GY.