Yes. An all-flash configuration is a requirement.
See: Using RAID 5 or RAID 6 Erasure Coding
You can configure RAID 5 on all-flash clusters with four or more fault domains. You can configure RAID 5 or RAID 6 on all-flash clusters with six or more fault domains.