Depend on use case. For me, its very crucial. Context, I'm working on ML and run several processing where usually consume memory up to 1TB at my workstation. Since my RAM only 196GB, this will trigger OOM killer, without Swapfile.
I use HHHL PCI SSD to host my swapfile to withstand with rapid read-write activities