The purpose of all the major religious traditions is not to construct big temples on the outside, but to create temples of goodness and compassion inside, in our hearts.
Encountering sufferings will definitely contribute to the elevation of your spiritual practice, provided you are able to transform calamity and misfortune into the path.