You can keep a curve into a plane, either at creation or edition.
The Planarity option is activated in the Tools Palette to let you impose the curve to remain in its plane.