It's hard to predict what the code is that caused the engine light to come on. You'll have to use a code reader for that. However, I'd go back to the dealership and mention your issue. It seems like maybe you should have paid a few hundred to have a mechanic check it out before purchasing it.