It's possible, by several mechanisms.
The Mt. Saint Helens eruption was precipitated by a landslide, which reduced pressure over the caldera, leading to a sideways-launched blowout of the volcano itself. That landslide might very well itself have been triggered by an earthquake.
Other possible mechanisms would be either the widening of a magma tube or fissure (permitting higher pressures to the surface), or the introduction of water (crustal or near subsurface) to a magma tube, with the ensuing steam explosion precipitating an eruption.
The role of water in vulcanism is something I'd not been aware of until relatively recently. The Ring of Fire volcanoes form largely around subduction faults, generally inland of where an oceanic plate subducts beneath a continental plate. The oceanic plate carries with it large volumes of seawater, and as that plate itself intersects with (and is absorbed into) the mantle, that incorporated water flashes to steam. The steam pressure itself then plays a major function in generating pressures and driving magma toward the surface. This is also why volcanic eruptions tend to have so much steam as part of the emergent material, so far as I understand.
Another recent eruption in which water (in this case seawater) played a huge role was the 2022 Hunga Tonga–Hunga Haʻapai event, occurring as seawater flooded into a large, shallow caldera, flashing to steam with explosive consequence. Whether or not that event was preciptated by an earthquake again isn't clear, but could be possible. Other mechanisms might have been a cascading failure of the overlying roof of the caldera, with smaller introductions of water expanding access and leading to the catastrophic failure and explosion.
There's some scientific research into the question:
"A review framework of how earthquakes trigger volcanic eruptions" (2021)
<https://www.nature.com/articles/s41467-021-21166-8>
"Can earthquakes trigger volcano eruptions? Here's the science." (2019)
<https://www.nationalgeographic.com/science/article/can-earth...>