Maybe. I already posted an article on the moon and the same reasons which led us to consider taking refuge in lava tubes on the moon can be applied to Mars. Here you will find a very detailed article, fascinating !
In Human Starpilots #4, a Child of the Federation, the magnetic pole of Filb is inverted, as part of a series of cataclysm. How does it happen ? Here is what I found when I went looking