That depends on how old your computer is, really.
If your computer is more than a few years old — and repairing/replacing its components would be costlier than expected (or what is reasonable) — then buying a brand new PC would definitely be the way to go.