Well, a check engine light suddenly coming on could be caused by a lot of different things – but yes, a failing spark plug could be one of those things. It’s always worth giving them a quick check, especially if you can’t remember when they were last changed.