Sugarcane-based ethanol does have a strongly negative carbon footprint and positive energy but ICE engines are notably less efficient overall that large utility scale cogen plants, even after you factor in transmission and distribution losses.
Making sugarcane into ethanol is good. It's less clear that distributing that chemical feedstock to a zillion people is a net benefit. Just send the electrons and keep the fuel at the plant.