That’s definitely possible. I do that myself, renting a VPS from Linode that acts as my WireGuard server and the entry point to a VPN tunnel into my home network.
This is a great guide about how to set up a tunnel to your LND node but you can extend this to cover basically any service you host, not just a lightning node