Yes, a shape of a molecule does matter.
The shape of a molecule helps to determine its properties.
For example, water molecules have a bent structure. This is one reason why water molecules are polar and have properties such as cohesion, surface tension and hydrogen bonding.
I hope this helps!