play character animation from a different skeletal mesh

Today I tried with blueprint to play animation of my enemy character using blueprint but it did not play then I found that this animation belong to different skeletal mesh so I changed the skeletal mesh of the character and then this new animation played normally so as I am learning is there a way to use animation of another skeletal mesh without changing my current character skeletal mesh ?

Yes, look for retargeting tutorials.

many thanks