No. Ransomware is likely to be detected if it uses suspect code. The problem was that the systems weren't patched and did not have decent virus checkers.
In any case neither will prevent stupidity in opening files that contain executables that aren't viruses or are NEW and can creep past generic tests.
This thread is now locked and can not be replied to.