Planetary magnetic field only weakly protects against cosmic rays (extra-solar origin).
A thick enough atmosphere will stop pretty much all the charged particles from the normal solar radiation.