Question: can a dc motor be used as generator?
Answer: A DC motor with permanent magnets can be used as a generator, just by spinning the shaft. If it is a brushless motor, alternating current is produced, so rectifier circuitry has to be installed to convert the output to DC.