If you have the 0171 / 0174 code chances are great that the hose is defective. If it is in fact defective then yes, replacing it will more than likely solve your issue.
Why.... Your engine is getting more air than it should. As a result the ECM allows the injectors to put more fuel into the combustion chamber. As it gets the extra fuel the RPM's goes above the regulated minimum / maxi mun idle RPM's. Soooo, the engine reduces the time the injectors are open to reduce the fuel and to lower the RPM's.
BUT, the extra air continues to come into the chamber and the ECM says, hmmmm, I need more fuel. So it is a never ending struggle to get things correct. Which can not happen if you have a vacuum leak.
Also, you may have a EGR issue based on what you posted above. This is also a common issue with the Tracs. So much so that Ford extended the coverage on the EGR System.
But fix the hose and then pull the codes to see what you have.
Let us know...