If the ransomware affects the computer before avast! can load, it would worth nothing.
Cryptographic ransomware would block the file access and avast! wouldn’t be able to decrypt them.
Here only the protection is the solution, not a boot time scanning imho.