Answer in Details
Your question touches upon deep philosophical aspects discussed in Shaivism and Hinduism as a whole. Lord Shiva, as the Adiyogi and Supreme Consciousness, is often associated with both destiny (prarabdha karma) and the power to transcend it.
Shaiva philosophy acknowledges karma—the law of cause and effect—as shaping one's destiny. The fruits of past actions (prarabdha karma) are said to manifest in this life, and some aspects of our lives are indeed influenced by this. However, Shiva is also known as the destroyer of ignorance (avidya) and the liberator (moksha-daata).
The Shiva Purana and other Shaiva texts teach that while karma plays a strong role, sincere devotion (bhakti), right knowledge (jnana), and dedicated spiritual practice (sadhana) can transform one’s destiny. Lord Shiva is called "Ashutosh," the easily pleased, who can bless even the most fallen soul and grant liberation from the cycle of karma.
The famous teaching goes:
“Karma cannot be erased except by the grace of Lord Shiva.”
So, while certain things may appear predestined, Lord Shiva’s grace and one’s own sincere effort can bring about transformation. The Shiva Mahimna Stotra also states that the Lord's compassion can override the strictures of fate.
In summary, Shaivism teaches:
- Karma plays a role, but is not absolute.
- Lord Shiva’s grace and inner transformation can change even what seems predestined.
- Devotion, surrender, and self-effort are powerful tools.
Thus, while some events may seem fixed, Lord Shiva’s compassion and your own spiritual efforts can indeed change your destiny.