yes, homeservers do not need to run at all times. I solve this by being able to ssh into the router from WAN via wireguard and sending out wake-on-LAN magic packets.
There are also webuis that can do this for you https://github.com/sameerdhoot/wolweb