Now that Black_Zion has given you the bad news, let me pile on a bit.
if you purchase the Ryzen CPU you will also need a new motherboard with AMD Socket AM4 and New DDR4 Ram (higher speeds are best)
OTOH, you can use your current motherboard, ram and it's APU for a cheapo system for grandma or similar.
ASUS TUF X570 wifi, AMD Ryzen 5 5600G, ASRock 6700XT Challenger, Antec Truepower new 700w. 32GB