We can use infinitives after some nouns which are related to verbs that can be followed by infinitives (e.g. wish, decide, need).
- I have no wish to change. (I do not wish to change.)
- I told her about my decision to leave. (I told her that I had decided to leave.)
- Is there any need to ask Joyce? (Do we need to ask Joyce?)
Not all nouns can be followed by infinitives in this way.
I hate the thought of getting old. (NOT...And note that not all related verbs and nouns are followed by the same structures. Compare:
- I hope to arrive. or There's no hope of arriving.
- I do not intend to return. or I have no intention of returning.
- She prefers to live alone. or I understand her preference for living alone.
Unfortunately there is no easy way to decide which structures are possible after a particular noun. It is best to check in a good dictionary.