Generally, when two or more words come before a noun, modifying it, and act as a single idea, we called the result an attributive compound adjective. These are hyphenated.
Examples:
A red-hot iron bar
Some freshly-baked cakes
When a compound adjective follows a noun, we call it a predicative compound adjective. We docan choose not to hyphenate these. To do so is a matter of style, and can be advisable if ambiguity is possible.
The iron bar is red hot.
These cakes are freshly baked.