Yes. You can modify a bicycle to drive a stationary alternator through a sprocket drive or through a belt drive and fairly easily produce about 100 watts of electricity for several hours. A trained athlete could produce much more. This can be demonstrated with monitored exercise bikes at fitness centers.