Noun:
* Meaning: A whim, a sudden desire, or a liking.
* Example: "She had a sudden fancy for ice cream."
Adjective:
* Meaning: Elaborate, stylish, or expensive.
* Example: "She wore a fancy dress to the party."
So, the answer to your question is: Yes, "fancy" can be a noun.