Yes, this process is very energy intensive and generates like twice CO2 per energy used. But in a hypothetical world without oil and natural gas it may lead to earlier start with electric cars and renewables so the total amount of CO2 put into atmosphere would probably be the same. Plus, as coal is much more evenly distributed, there would be much less reasons for wars.