"education" without an article is more common, and means the concept of education in general. "an education" refers to the whole process of an individual person being educated. It's less commonly used but it has been used correctly in your example.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.