Yes, an earthquake can trigger a volcanic eruption by causing shifts in the Earth's crust, which can increase pressure within a volcano. Similarly, volcanic activity can also lead to seismic events.