Reinstalling iTunes should not affect your library. Back it up anyway. See this User Tip for an effective backup strategy.
My computer recently crashed and upon being fixed the computer wants to configure iTunes. An 2330 error comes up about renting movies. It says if it won't fix to uninstall and reinstall iTunes. If I do that does my library then need to be reinstalled too or does it come back automatically.