would a compass work at the north pole
Yes, a magnetic compass will work at the geographic north pole. Just like any where else on the Earth, it will point along the local lines of magnetic force. At the north pole, these lines happen to point along the line of 169 degrees East longitude.