Is there a way to stop the animation at certain time ?

I found it

In the Details panel, under the “Root Motion” section, enable the “EnableRootMotion” checkbox. This tells Unreal to use the root motion from this specific animation.