Not unless you have a really long extension cord!
Some bikes do have regenerative braking. This feature sounds great, but in reality the benefits or regenerative braking are not worth the cost and extra weight on the bike. For instance, if you are riding down a hill with the regenerative braking activated for 60 seconds, this would be equivalent to plugging the battery in for only 60 seconds. Rather than forcefully stopping to recharge the battery, it is more efficient to slow down gradually when approaching a stop.
Regenerative braking also loses some efficiency in the conversion from mechanical to electrical energy. The recharging process also loses some efficiency as the electrical energy is pumped into the battery pack. The inefficiencies add up and reduce the overall effectiveness of the system, especially on lightweight, slow-moving bikes.
A direct drive motor must also be used with a regenerative braking system. This type of motor is cost-effective, but is very heavy, has a lower torque density, has cogging issues, and a large motor diameter. These disadvantages outweigh the cheaper cost, which is why we do not use this type of motor on our bikes.