Yes, absolutely. In fact, in a brushed permanent magnet motor, no conversion needs to be done. Just spin the shaft and it generates DC voltage/current.
Some can, the old kind with no electronics in them and with brushes. All the new brushless ones, like the ones on computer case fans, they do not work in reverse, the electronics do not work in the reverse direction.