Not necessarily! I have a 12 year old enclosure, Intel i7, 32 GB RAM, 2 GB dedicated graphics card, 1 TB SSD, a 1 TB and 2 TB sata data drives, 5 externals for backup, ... I run 5 or 6 photo editing programs, including LR Classic CC and 2019 Adobe Photoshop CC, ... My processor and motherboard were upgraded in 2012. She does not need new hardware other than possibly RAM and larger SSD and of course backup drives. Certainly not a new PC.
The only person to mention the graphics card. Neither of those processors have enough graphics ram to run photo programs. Upgrade to a dedicated graphics card and you should be fine.