Putting truenas scale server to sleep

Hey im wondering if i can put my server to sleep through trunas software? I want to install a Wake on Lan (WAN) card into PCIE and then be able to send a signal to turn it off when im not home etc. Is this possible?

Thanks