If you use animations designed for UE5 skeleton then it should work without issues. It will not work with UE4 animations. You'll have to retarget those animations.