This is what trains do. Bug diesel engines that run at peak efficiency nonstop that generate electricity that goes to electric motors. Trains especially benefit from this because they need massive amounts of torque to get started from a stop. >>18325947
Theoretically, a perpetual motion machine is perfectly feasible. It just wouldn't produce any energy.
Take a moon sized rock in empty space, throw a pebble around it at the perfect speed so it's doing a perfect orbit. As long as nothing interferes with the two objects you will have perpetual motion.