Yes, that rule is pretty well standard no matter what the time measure is. Whether day, week, month, year, decade, century, or millennium, the term should be in the singular form when compounded with a number by a hyphen to form a quantity premodifier, as in the following examples:
“a four-year course,” not “a four-years course”
“a five-century tradition,” not “a five-centuries tradition”
“a 20-decade conflict,” not “a 20-decades conflict”
“a 100-millennium celestial phenomenon,” not “a 100-millennia celestial phenomenon” or “a 100-millenniums celestial phenomenon”
The same rule applies when the count is for a number of people or things, as in the following examples:
“a five-man team,” not “a five-men team”
“a 30-woman contingent,” not “a 30-women contingent”
“a 25-member choir,” not “a 25-members choir”
“a 5,000-tree mango plantation,” not “a 5,000-trees mango plantation”
“a 45-mammal menagerie,” not “a 45-mammals menagerie”
I'm sure you've gotten the hang of it by now.