The temperature of the Earth's inner core is estimated to be about 5,400 degrees Celsius (9,800 degrees Fahrenheit), which is indeed slightly hotter than or roughly equal to the surface of the Sun (about 5,500 degrees Celsius). Thus, the statement is scientifically accepted as true.