It can be both.
For instance I have a Wireguard network set up on my node at home and use it to log in remotely. Then I have another Wireguard network set up on a rented server somewhere and use that as a traditional VPN when I'm browsing the web but want to hide my IP.
There are lots of possibilities once you learn how to build virtual private networks :)
