Add to what is said above,
The "swap off" will disable swap usage, see it as a flag information to the kernel.
Not like "Windows", FreeBSD (the nix systems) use a dedicated swap partition, so you cant' see it, use it , or do something else with it.
The "swap off" command just tells the kernel to start OOM processes as soon as there is not enough free RAM anymore, A process is elected to be 'terminated', using a selection criteria somewhat better as 'Russian roulette', but the result will be the same as nearly all processes are essential to the system : things will go downhill fast.
On pfSense, the process with loads of RAM (the DNS cache) is often unbound, so unbound is asked to leave, leaving you without DNS (and unbound gets yelled at again ...).
If "swap" gets used on a pfSense system, you can interpret this as a pretty solid confirmation that your system is 'to small' for the tasks you asked it to do. The solution has been identified, it's " add more RAM " .....
"swapon -a" is actually that little extra safely net, that can do the little extra more for you when needed, and its warns you that you'll need to buy more DIMMs