No, this is wrong. I saw this documentary, 'Johmny Neumonic' I think, and it specifically showed a computer scientist increasing his storage and RAM through software, but you need a special device to plug in to do it. I'm sure Best Buy sells it.
Have a look at https://wiki.archlinux.org/title/Zram - a compressed block device in RAM that can be formatted as swap. There are various tools to set it up, maybe your distro already includes one of them. And htop has a meter for it, so you can see how effective the compression is (besides its own zramctl tool).
Nah i think the right way to do it is go to some site (you can Google some) and download some RAM. They even make the link flash so its easy to find. If you need more RAM just download some more