When the check engine light comes on in a vehicle, it’s indicating that there is some issue with the car that should be checked out. It could be something minor, such as the gas cap not being screwed ...
The scanner can reveal the trouble code hiding behind your Check Engine light, but you should not treat that as a definitive diagnosis.