Yes, leaf mulch is great for compost! As long as you shred your leaf pile (ideally shortly after the leaves have fallen from the trees) and mix it with a green source of nitrogen, it will make for excellent natural compost.