Can I take the music off my iphone and put it on my laptop?

My itunes and all my music got deleted when my system crashed a month ago. I still have all my music on my iphone but I was wondering if i can take the music from my iphone and move it to my laptop, then re-add it to itunes?

It should work after you re-install iTunes and register your iPhone to your laptop with the same account

Not only can you do that with your iPhone, but did you know that using your iPhone you could have connected to this thing called the "internet" (may have gotten the spelling wrong) and found that this same question had already been asked and answered hundreds of times?