If you want to create e.g. triangle, and with Curve SOP draw two sides, then check Closed Curve, it draws third side. Then just append Ends SOP and set Close U to Unroll.
For Nurbs Curve you need to append Join SOP (check Wrap Last to First) then append Ends SOP (with unroll option)