Umm... No, not quite.What a load of crap. Modern warships are hardened against EMP. They have to be. They are designed to operate on a nuclear battlefield. Besides, if a system is shut down , it can simply be rebooted.
Some of the systems which can be used for EW, specifically EA (electronic attack) can damage targeted electronic systems.
A targeted radar or radio transceiver, which suddenly developed microscopic cracks (as a result of an EMP or EA) in portions of the array, or processing electronics, or even the cabling between the transceiver and the displays, cannot "simply be rebooted" and have it return to normal operations.
Besides, having to 'reboot' a system while in mid-flight can be quite problematic. Having to reboot a FBW system for an aircraft in-flight can easily cause the loss of aircraft and possibly pilot.