If you have unusually expensive energy then this is correct. Globally though this neglects embodied energy. A new machine with all new chips takes a
ton of energy to produce. It's usually most efficient to reuse old stuff as long as it's useful rather than pitching it as e-waste and buying new.
Also keep in mind that a desktop can usually be put to sleep or turned off when not in use. Doesn't need to run 24/7.