No - do not delete this if the disk it is on is your system disk. It means you've run out of memory and the OS has to temporarily some of it on disk. If you need the disk space, you can disable swapping. Or, after a reboot, this file should be deleted until such time that you run out of memory.
https://www.asylab.com/single-post/2017/11/29/Disable-Swapfile-MacOs-Mac-OS-X
You can use Activity Monitor to monitor your memory - maybe there's an app that's taking a lot of it.
If sig of OP is right he has 8GB ram.
i have mid 2012 macbook pro i5 with 6GB ram and 240GB SSD.
the swap file OP talks of is 1.07GB on my laptop