No, it is not true that the Earth generates more electromagnetic fields than the Sun. The Sun is a highly active and massive star that emits a vast amount of electromagnetic radiation and generates strong magnetic fields.
The Sun's electromagnetic fields are a result of various processes occurring within it, such as the movement of charged particles, magnetic field interactions, and intense solar flares. These processes generate a wide range of electromagnetic radiation, including visible light, ultraviolet radiation, X-rays, and radio waves.
While the Earth also generates its own electromagnetic fields, such as the Earth's magnetic field, they are significantly weaker compared to the Sun's fields. The Earth's magnetic field is primarily generated by the movement of molten iron within its outer core. It acts as a protective shield, deflecting charged particles from the solar wind and contributing to phenomena like the auroras (Northern and Southern Lights).
In summary, the Sun, being a massive and active star, generates far more intense electromagnetic fields and radiation than the Earth.