I think there more to it to it than just that.It vibrates through mediums
Actually,you are correct.Here lets watch a video on how sound travels through matter.
Sound does not travel as fast as it would in solids because they are slightly farther apart.You would hear sound through a liquid second best.
Sound going through liquid
Sound Travels slower in gas cause the molecules are far apart from each other.This is the last best way to hear sound through cause of the spread apart molecules.
Sound going threw gas
Sound going through solid
Sound travels through Solid better cause the molecules are so close.You would hear sound better in a solid.