YES, it does work!
There are actually 6 setups like this at the Science Center in Toronto. They were put in about 40 years ago. The front wheel of the exercise bike has a fanbelt going to an alternator at about 15-1 ratio. The original design was army signal corps about 1942. It was used to recharge batteries and run radios in remote areas.