Is coal and oil the same thing?

One can think of coal and oil as being different forms of carbon-based fuel. Coal would be the solid state of fossil fuel. Oil would be the liquid state of fossil fuel. While natural gas would be the gas state of fossil fuel. Fossil fuel in different state of matter can undergo phase transition by applying energy. Thus there are processes that convert coal into oil and natural gas or from natural gas into liquid form.