It is not necessary that all solar flares cause CME because sometimes the CME cause little or no damage to the earth. It is quite similar to the HEMP, but its risk level can be low in comparison.