Yes absolutely, Ryzen 5 5600X is worth it and the price has been dropping steadily. Ryzen 5 3600 is also good for a little less.
But depending on what you do with your PC, maybe a lower end CPU would be cheaper if you don't play a lot of games which Intel has a handful of, i3 10100 or i5...