MY mercedes benz check engine light came on when i was driving it could it be sp on 2002 Mercedes-Benz ML500

sparkplug need to be change

Asked by for the 2002 Mercedes-Benz ML500
If the check engine light came on for a Misfire, then spark plugs "could" be the problem, but its just one of many possibilities.
However, there are many other faults that can trip a Check Engine Light besides misfires, so your best bet would be to have the engine computer scanned for fault codes and go from there.