Creating a Racetrack from a Trajectory

Hello, I am trying to create a race track that matches a previously determined trajectory. For example, I have already generated the following track in 2D, and have the X, Y coordinates for all points on this trajectory
I have also followed this tutorial Unreal Engine 4 - Track Creator Tutorial with Spline Tool (Beginner) - YouTube to set up a spline mesh object.

I feel like there should be a way for me to import my list of points to automatically create a spline along the trajectory, but I am uncertain how to do that. Is there a way to do that or there a better way to do this?