Is there a way to connect an animation curve to a variable

I am not sure about the animation curve, but blueprints has something similar called a Timeline if that helps.