Yes. The Volcano at Pompeii had purpose. Remember what I said about the what ifs. The Romans killed by it may have changed history in any number of ways. By action, choices, inventions, and descendants.What is recognized as "Purpose," is just biochemical electrical impulses in an organism. When volcano at pompei erupted, was its purpose to kill all those roman villagers? how is there purpose in a cloud. An inanimate object cannot have purpose. It's purpose is to transport water? It's one thing to appreciate aesthetics of something. But why ascribe purpose to inanimate things. Unless you believe in animism. That when rock rolls down a hill, it did it "on purpose". And then you could apply that to the universe it self. Which gets into the realm of 'intelligent design.'
All of human history, is just impulses, emotions, fears, joys, pleasure & pain, operant conditioning, instinctual drives. The more intellectual humans, used rationality, logic, mathematics and constructed modern civilization. The more brutal humans kept it in check, perpetuating it through armies, conquests, propaganda.
This Volcano also caused thousands to flee. Settling in other places. Meeting people they wouldn't have prior had the Volcano not erupted. Along with the lost resources of that city. Which had an impact temporary though it may have been. Which lead to some other event happening.
And yes inanimate objects have purpose. A certain rock forms a million years ago. It moves place to place by wind and water.
Million year passes. A wars being fought. Soldiers rush forward. The rock trips one saving his life from bullets. He gets up runs forward. Gets killed. The rock saved his life. Gaining him a few more minutes before he died. To accomplish a purpose.