Easily, if you plan your hardware purchases. My 2012 desktop PC is still doing great. Intel i7-3770, 16 GB RAM, SSD. I'm glad I haven't let myself be convinced by the popular opinions at the time that i5, 8GB RAM and HDD are totally fine and there's no reason to pay more.
The only component I've upgraded was a graphics card, but that's only because I play games on this PC. Otherwise, my old GTX680 would have still been fine.
The only component I've upgraded was a graphics card, but that's only because I play games on this PC. Otherwise, my old GTX680 would have still been fine.