Yes. The problem is that the thermal conductivity of rock isn't great, so it needs to be in a "hot" area and to have some kind of underground fracturing allowing water to spread out and heat up.
It must be easier to get environmental permits for geothermal since it has such a small footprint compared to wind and solar and won’t kill any birds, make noise, make pulsing light, etc.