Very unlikely that that could have hurt anything.
You don't seem sure whether it's an engine issue or a drivetrain (tranny etc) issue. You really need to determine that (ie, does it do it in neutral?, etc) before we/you can proceed.
Keep in mind that it may have been caused by the...