The only issues being that there is no real evidence that Wannacry diffusion is connected with machines running Windows 2000 or XP (where seemingly the malware doesn't even run) and seemingly (as stated in the El Reg article cited by detritus) the OS of the ship(s) are not connected in any way with the internet, so it would be hard for it to enter the system at all.