If it is a brush type permanent magnet motor it will create DC if used as a generator, but if is is a brushless DC motor (e.g. motor from a disk drive, VCR or similar) it will generate AC if driven,
A DC motor can be used to produce a direct current, while an AC motor can create an alternating current.
Dc motor uses DC power to produce mechanical power, ie, it rotates. I think you mean using a DC motor as a generator. If it is a permanent magnet motor, it will produce DC power when you spin the shaft. But not as much as a generator designed for that purpose. .