Depending on the engine, if batteries are poor, but the alternator is good, it will still effect the computer or in some cases throw a fault code because the ECM monitors the alternator discharge. If it senses there isn't a discharge, it codes that as a problem.
Again, depending on the engine...