If electronic devices are turned off, will they survive an EMP (electromagnetic pulse) weapon?

What makes an EMP dangerous for electrical devices is that every wire and every conductor track and every other charge carrier receives a current induced by the strong, rapidly changing magnetic field, regardless of whether it is switched on or off.  You can shield devices from such an impulse, but most devices are not.