If your vehicle has a manual trans, it can put stress on the clutch and drive train assembly if left in gear. If an automatic, you run the risk of breaking the shift prawl or internal damage to the transmission. In any event, not a good thing to do, If you have to move a disabled vehicle, be sure it is in neutral with the brake off.
It wasn’t locked it was your posi reared that only lets 1 wheel turn in the forward direction with out the drive shaft turning> So it was rotating backwards> have to drive and see if it hurt it or not>