Should I upgrade my CPU?

I recently got a 4070, meanwhile my cpu is a ryzen 5 3600. How badly is the cpu limiting my 4070? Its just that if I decide to swap out my cpu I would also need a new am5 motherboard and ddr5 ram for it to be a worthy upgrade.