that's basically what the moon is for us for most sizes of asteroid (minus very large world ending ones)
Popular myth. "While the Moon does undeniably experience asteroid impacts, these impacts do not proportionally alleviate the impact risk to Earth; instead, both celestial bodies are subject to independent and interconnected bombardment" [1].
[1] https://iere.org/does-the-moon-protect-the-earth-from-astero...