No, there are different earth processes responsible for volcanoes. Earthquakes may occur in an area before, during, and after a volcanic eruption, but they are the result of the active forces connected with the eruption, and not the cause of volcanic activity.