It depends on the e-bike model. Some e-bike models have this feature, but will require exerting extra effort to charge the battery while the unit is running. Also, some e-bikes feature regenerative braking that enables the battery to charge while you brake.