How can I draw a spline drawn by the player's movements?

Looking at Procedural Mesh, it looks like most people use the procedural mesh that’s from Lyra project in UE5.

Can I achieve the same goal where my character would be generating/extruding meshes like your spline generator mechanic?