That would require a new motherboard and DDR4 RAM. Not only is the socket important but also the chipset. An i3 8100 will only work on 300 series chipsets such as H310, B360, Z370, Z390. Even though 100 & 200 series motherboards have the same socket they don’t support 8th or 9th generation CPU’s.
The i5 530 is on such an old platform any upgrade will require a new motherboard/cpu/RAM. Also if the psu is as old as the i5 530 then it’s time to change that for one that supports Morden power states and isn’t near end of life.