Earth's magnetic pole has been known to switch sides in the past. https://en.wikipedia.org/wiki/Geomagnetic_reversal
"183 reversals over the last 83 million years... A brief complete reversal, known as the Laschamp event, occurred only 41,000 years ago during the last glacial period. ... Geologists first noticed that some volcanic rocks were magnetized opposite to the direction of the local Earth's field.".