This is exactly it. Of course battery production is harmful too, but not only is it less harmful than other sources to extract, you also don’t have to burn batteries to generate the power. With fossil fuels, the extraction is massively more harmful and then the use itself creates even more pollution.
Yes, in that it’s a motive for locos