Exactly: the Dark Ages were called that because there just wasn't that much written history that survived from that time, compared to times before and after.
These days, for some reason, some certain groups of people are trying to rename the Dark Ages and whitewash them, but I think it's pretty clear that there was a lot more learning and recording of knowledge after the Enlightenment than before.