Check Engine Light Due to Failed Thermostat on Dodge Charger

Problem Description and Possible Solution

The thermostat may fail to close completely, causing the Check Engine Light to illuminate. This problem will prevent the engine from reaching normal operating temperature; a new thermostat should be installed.

I recently had my thermostat housing repaired late last year. Could this be the problem with the check engine light coming on? The engine idles rough and is substantially rocking the car more than normal. Low power and seems the car is about to die, but never does.