No, electric bikes do not charge as you pedal. Instead, they have a battery that needs to be charged in order to power the motor. The battery will last for a certain number of miles before it needs to be recharged, and this will vary depending on the make and model of the bike.