It has been speculated that earth and mars had synchronous orbits at one time and may have traded spaces several times throughout the aeons.
They can contribute. Other contributing factors changes in the sun (biggest!), changes in the sun’s, earth’s, Jupiter’s & Saturn’s magnetic fields. One we are only now starting to get a glimmer of understanding changes in the cosmic ray showers as the solar system goes around the galactic rim. That position correlates strongly with major climate events. Correlation is not always causation, but so far the physics also makes sense.