Yes. Fine ash and sulfur droplets can spread through the upper atmosphere and dim sunlight across the entire planet.
The danger is not the lava but the **sulfur**, which forms a haze high in the stratosphere and reflects sunlight back to space. That global dimming, not local burial, is what makes supereruptions a planet-wide event.