No. Not if it's just a typical swap file/drive/partition. A RAM disk is something completely different. In FreeBSD they're referred to as "memory disks" and work like other mount points except you're allocating RAM to create a drive instead of pointing to a physical drive. I'm not sure what OS you're running but you might want to "man mount".