Is there a way to use a procedural mesh for the spline mesh component?

I am creating a mesh programmatically at runtime that I want to use as the mesh for a spline mesh component that I am also generating at runtime. However, it seems like the default functionality for spline mesh component can only take a static mesh as the base mesh. Is there a way to set the mesh as a procedurally generated mesh at runtime? If not is it perhaps possible to convert a procedural mesh into a static mesh at runtime?