Can adjectives always be used as nouns when they denote a plural and are preceded by the definite article?
Yep. Because there is always an assumed "people" attached. So long as it's an adjective that can reasonably be used to describe people, you should never run into an issue.
If you ever feel uncomfortable with your construction, just substitute "X people" for your "the X" and see if your sentence still works grammatically.