No the battery is recharged using a charger supplied with the bike. We can create a system to recharge while you ride but the gain is far too little against the cost of the system. Be careful some sellers have old technology motors that remain engaged whilst you pedal.
They promote these as being able to charge while you ride. That means you have to work harder to ride without power assistance for a gain you can barely measure. Stay away from these. There is an excellent Canadian system that does charge the battery (if this is important to you click here to find out more) but at approximately five cents to fully charge your battery from the grid most people don’t want to spend the extra money. Furthermore it is hard work to charge the battery.