Answer :
"I ordered two sugar-coated pies" represents a correct usage of a hyphen, although it should be noted that this is a bit of a subjective matter. It's up to the author.
Answer;
I ordered two sugar-coated pies
Explanation;
Hyphens has a variety of uses in grammar; For instance;
Hyphens are used to link words that function as a single adjective before a noun.
They are used with compound numbers, and to avoid confusion or awkward letter combinations.
They are also used with certain prefixes and suffixes and in certain special cases.