Most attack campaigns start with compromised credentials, so MFA absolutely helps prevent ransomware.
Attacks involving credential stealing almost never involve malware.
Source: The 2020 Microsoft Digital Defense Report https://www.microsoft.com/en-us/security/business/security-i...