
WD Blue SN570
1000 GB, M.2 2280
WD Blue SN570
1000 GB, M.2 2280
No. A standard M.2 SSD will not work in an iMac without the use of a third party adapter, as they didn't have M.2 slots back in 2014. Plus you need to make sure the iMac's firmware is up to date so it can communicate with an NVMe SSD. You will only be able to use macOS 10.13+ on this iMac when used with an NVMe SSD.
You would be better off with a standard SATA SSD, something like [WD Blue (1000 GB,
I use this on my MacBook Air (early 2015) with an adapter (cause Mac doesn't have a standard M.2 interface). It works fine so at least it is compatible with Mac.
As I know, *some* 2014 iMac support Fusion Drive, i.e. there are SSDs in these iMac. (Theoretically) you can buy an adapter (M.2 to Apple SSD socket) and install this WD SSD to your iMac, but actually I don't know wether it will work. Fusion