Yes but that is because the sun also has an effect on tides...
"t is a result of the attractive forces of the moon and sun’s gravitational fields, combined with the centrifugal force created by the earth’s rotation pull on different parts of our planet. Despite being around 1/100th the mass of the earth, the moon has enough gravity to affect the earths oceans. In fact the moons gravity is so powerful it even pulls on the earths landmass, yet not enough for us to feel this."
https://www.tideschart.com/blog/tides/what-is-the-cause-of-tides/