Path vs shape

Sometimes when I draw with the pen tool, I create a mask path. Other times, I create a shape. How do I decide which one I want?
 
I think I figured it out. If I have no layers selected, the pen tool draws a new shape. If I have a layer selected, it creates a path.
 
Back
Top