If Moodle is running on a server
then you don't shut it down.
If you're running it on a desktop just to "try it" then it doesn't matter. Cron
can run while the PC is switched on. That'll do fine. Obviously (I hope), you can't run a service for real users on a computer you shut down.