Yes, the polarity of water molecules is what causes them to be attracted to one another. Water molecules have a slightly positive charge on one end and a slightly negative charge on the other end, which creates an electrostatic attraction between them. This attraction is what causes water molecules to stick together and form surface tension, solutions, and capillary action.