In my story about a planet called Kepler Bb(B flat like in music). It has 4 moons and orbits around a double binary star. In the 11th chapter I have an whole sequence of earthquakes in the same area that lasts for hours. Then after the earthquakes stop somebody checks the fault line and it is deep and hot. Because of this a volcano might form. Now my humanoids have a mainly underground civilization and all those earthquakes didn't affect the homes other than it being dusty but it made all the tunnels between homes and buildings collapse. 400 people with the power of flight form groups of 4 and evacuate everyone. As the geologist suspected a volcano formed in the place where they have been living for hundreds of years. The homes and buildings were like lava tubes. But could it actually happen here on earth or any other real earth-like planet that a major earthquake followed by more earthquakes in the same area could make the fault line so deep that lava starts to flow out of it and a volcanic ridge forms regardless of whether it is underwater or inland? I know that there are volcanic earthquakes. They normally can't be felt but a seismograph can sure tell when the volcano is likely to erupt in the short term by measuring how strong the earthquake is. I also know that occasionally a major earthquake in an area with active volcanoes will trigger the active volcanoes to erupt, even without an earthquake from the volcanoes themselves that usually happens before the eruption. An example of this is a 7.2 magnitude earthquake on the big island of Hawaii on November, 29, 1975 that was immediately followed by a short lived eruption from Kilauea. But can earthquakes cause volcanoes to form?