The statement above is true.
Coal used to be the primary source of energy of our civilizations, almost all our technology used coal back then. Train, cooking stove, machine in the factory, etc.
Now, it's used to make coke ( the building material, not the drinks). pencil, and in village usually to replace firewood.