What Does It Mean?

You are correct!

From our dictionary:
el•e•gi•ac

(el"i•jI'uk, -ak, i•lE'jE•ak"),
adj. Also, el"e•gi'a•cal.
1. used in, suitable for, or resembling an elegy.
2. expressing sorrow or lamentation: elegiac strains.
3. Class. Pros. noting a distich the first line of which is a dactylic hexameter and the second a pentameter, or a verse differing from the hexameter by suppression of the arsis or metrically unaccented part of the third and the sixth foot.

—n.
1. an elegiac or distich verse.
2. a poem in such distichs or verses.