If a solar flare hit the earth during an eclipse, would the moon protect us?

We all know the sun can, at any time, eject really bad solar flares in our direction, potentially zapping electronic devices and disrupting communications world wide. It has happened before. It will likely happen again.
What would happen if there was a total eclipse of the sun by the moon when it happened? Would we be protected?
Unfortunately, no, we wouldn’t.
The moon’s shadow of totality is only a few miles wide. Everything outside of that would be hit by the bad stuff. So, no, the moon isn’t able to shield everyone because the Earth is much bigger than the moon. It’s kind of like the shadow of a marble protecting a basketball.