Yeah i think there is. Just copy your music folder to an external drive, do the clean instal, and paste it back (make sure the itunes versions are the same, so update your clean instal first).
Within your music folder, there is an iTunes folder which contains files about your itunes contents, genius data, ratings ect. So if all your music and iTunes files are back the way they were, iTunes will run like it always did. I used this method to from a PC to my Macbook, since migration assistant wasn't compatible at the time.
Just keep the time machine back-up in case anything breaks, but you should be fine, it worked for me.