Yes I agree,
"When one door of happiness closes another one opens, but often we look so long at the closed door that we don not see the one that has been opened."
- Helen Keller
It is always good once and a while to have setbacks and misfortune, because usually something good or an opportunity is opened to you.