Yes, this tutorial is designed for you PC to be a Switch in SmartThings just like any other Switch. You can use a rule engine like webCoRE to specify when to turn your PC on or off. However, this does rely on a dedicated server such as a Pi3 or a Linux or PC that is always on.
There is another tutorial that is built on the same concept but doesn’t require a dedicated server. The link is below.