I bought and used one when I was a student. You can game on them but they are not built for gaming, they are too compact and are meant for office work. From the specs you listed it only has 8 GB RAM which is not a lot for playing games.
I used mine until I ended up saving for a desktop computer which I recommend saving money for. With that you can bring it to a computer shop which can repair and upgrade it without any trouble.
You don't need a gaming computer to run the sims4 but it helps a lot with the faults that the game has with lag and loading times.