No. The standard compass used in the northern hemisphere on the Earth has a pointer labeled 'N' that points to the North Magnetic Pole on the Earth. The Moon has no magnetic field, so the compass would not point anywhere in particular. On other planets such as Jupiter and Neptune, the direction the compass would point is considerably different than the direction of the northern point of the planet's rotation axis. Astronomers define the north 'geographic' pole of a planet by the planetary pole that is in the same ecliptic hemisphere as the Earth's north pole in the solar system. For the magnetic poles, their names are decided upon by the direction that their field lines emerge or enter the planet's crust. If they enter the same was as they do for Earth at the north pole, we call this the planet's north magnetic pole. But, magnetic poles can flip flop from north to south and back again. The Earth's poles have done this, and 500,000 years ago, the south magnetic poles was at the North Pole!