Of course it does. An astronomer on the moon, attempting to observe the stars, will see the Moon rotate around its axis once every 27.3 days. He will therefore see (almost) the same starfield in front of him about once every 27 days. From that he can correctly deduce that the Moon rotates around its axis once every ~27 days. He can then go to the moon's north pole and look straight up. He will see a point that everything rotates around. He can then conclude (correctly) that the Moon rotates around the axis defined by that point and the center of the moon.