It would be better if you specify which av & what variant of ransomware. Just saying Ransomware you are meaning wide range of things such as trojan encryptor, file encryptor,troj encryptor + botnet etc. Now if you are asking for a generic answer it would be no. If you are asking for some specific answer then I would say indeterminate.
There is certain class of miners which first check your av product then it allows itself to run.How come you even think any random av would be able to protect you against any random ransomware.