Closing a curve

Is there any way to close a curve without it being filled with a face?

Change it to ā€œ3Dā€ in the edit buttons (F9)