Yes, one should always have an attitude of gratitude towards the Universe / God for every thing in life. Everything happens for a reason and to push us forward. Nothing is given just to cause sufferring. To understand these deeper concepts is wisdom .