That should work fine for the Sims 4. If you want to play other recent 3D games it might struggle a bit depending on the game and your expectations. It fits in the budget class as you can see below.
Look for specs like these:
High end
CPU = Intel I5/I7 generation 7 or better AMD Ryzen 8 or better
RAM = 8GB DDR4 or more
HDD = 250GB SSD with secondary HDD for storage.
Graphics = Geforce 1060 6GB or equivalent AMD card
Budget
CPU = Intel I5/I7 generation 5 or better I3 generation 8 AMD Ryzen 5 or better
RAM = 8GB DDR4
HDD = 1TB Hybrid drive
Graphics = Geforce 1050 or Geforce 1060 3GB or equivalent AMD card
If you find one you like and want an opinion feel free to post a link.