Not really how that works. Also earths core is being heated from nuclear decay and tidal effects. It’s getting 10’s or TW worth of heat until the sun expands and eats the earth. https://en.wikipedia.org/wiki/Earth's_internal_heat_budget
10 TW * 1 year = 8,760 TWh / year. The current rate of energy production is ~42TW and slowly dropping over billions of years, so even after efficiency losses gathering 1% of what’s produced is several times current energy consumption.