Draw a path

Choose the Pen tool in the preview toolbar. Click for corners, drag for curves. Click the start point or press Return to finish.
Use it as a line, an arrow, or a motion path. On a title, open Path and set Follow to that pen.
The curve is in the export, including if you keyframe it.