Technically, not all energy on earth comes from the sun. Geothermal energy comes from radioactive decay and cooling (including shrinking converting some gravitational potential energy to heat). Tidal energy is partially from the moon. Even meteorites provide a miniscule energy input. But, yeah, the Sun is kind of a big deal.