How to use curve graphs as a property of a component?

I’m looking to use a curve graph to define an object’s speed along a spline. Is it possible have a curve graph as a property on c++ component in UE4?