It a way yes. [Geothermal_energy](https://en.wikipedia.org/wiki/Geothermal_energy) is using the heat in the ground do produce electricity, heating etc. It is very common on for example Iceland.
So you use the heat that is close to the surface in area with volcanic activity. There is no usage of the energy released when vulcanos have an eruption as it happens quite seldom so quite impractical.
Even if you were around a Vulcano with persistent lava lakes using it would be impractical, the hot ground around it is better as your equipment does not get destroyed. There are only eight volcanos that have had them in the last decades so extremely rare.
Latest Answers