After creating a path (with the pen tool) you can select the path and Choose Edit > Define Custom Shape to add the shape to your Shape Library.