I don't believe this is true, at least nowwhere that any of us (in port or in harbor) would be likely to encounter some highly classified ship.
I can assure you that if you were, say, at sea in your extremely expensive Motor Yach-at
(google how much we hate Duane Hagadone) and were to chase down a classified ship, you'd have motor launches and other troubles LOOOOOnnnnnggggg before you had to worry about some mysterious EMP
Having said that, there ARE --backin my day--VERY high power shipboard RADAR that can and did raise hell with equipment. The old SPS-30 was one, although I was never associated.
(My job, ending up ultimately at Miramar, was maintaining GCA (precision approach) and TACAN, both relatively low power stuff)
As a radio amateur, however, I can remember being around the SF/ San Diego harbors and receiving interferance from pulse RADARs from ships and other sources. These can blank TV's and raise hell with radios.
By the way---off this subject---this whole paranoia with RF damage from devices is pretty much overblown. THERE HAS NEVER BEEN a documented case of ANYONE suffering any death or serious medical damage from an RF transmitter, UNLESS they were doing something terribly wrong. By that I mean something on the order of:
Vandals illegally climbing towers with high-power FM/ TV other VHF/ UHF and or microwave devices Bear in mind this ALWAYS means climbing high and (usually) barbed fences, breaking locks, and other related ILLEGAL activities
Illegally (bypassing locks) eating your lunch and suntanning on tall building roofs in spite of plainly marked warnings in the near field of antenna installations
Bypassing the safeties on your microwave oven, and then sticking your limbs/ head/ dog/ other inside