Yes, a corroded battery wire can cause the check engine light to come on. Corrosion on the battery wire can cause a poor electrical connection, which can lead to a drop in voltage or electrical spikes that can trigger various fault codes in the vehicle's computer. Some of the common fault codes that can be triggered by a corroded battery wire include codes related to the charging system, voltage regulator, or other electrical systems in the vehicle.