I just watched a video on Facebook by somebody who built a project to run an LED using a 9 volt DC motor scrounged from a battery operated toy. They simply wired the LED to the motor and then used a pulley system to spin the motor.
Here's a link to the video: Creating a generator from a DC motor.
Doesn't a typical DC motor like those used in toys act like an AC generator if you spin it? When you move a magnet past a coil of wire you get an AC pulse out of the coil. I would be surprised if a cheap DC toy motor contained a rectifier diode since it's designed to be a DC motor, not a DC generator.
So my expectation is that a typical DC motor would act like an AC generator.
Further, a 9 volt DC motor spun at a fairly high speed would probably emit around 9 volts AC with a fair amount of current behind it, so I would think you'd risk exceeding the reverse breakdown voltage on a small LED and burning it out.
I think the project in the video in question would need a rectifier diode (ideally a full-wave rectifier) and a current limiting resistor or it would risk blowing out the LED.