Using a Key Fob/Remote to Power on & off PC

When it is powered off and unplugged/plugged back in, it does not book back up. However, when unplugging when on, it does power back up. That would be the goal, but that would damage the OS and PC.

I was suggested to purchase a receiver and remote along with an Arduino Nano and resistors. Would something like this work for this concept?