If its a cordless tool, then its a dc motor, and can be used. Some of them are large though. It used to be common to use dewalts cordless motors (12v ones i believe) on a summit or even a crawler. I know the 18v ones are 775 sized motors, i ripped one of my drills apart to see. And the newer brushless motors are really tall and thin. So i doubt they'd fit in anything.
if its a corded tool, then no it wont work, as it'll be an ac motor.