Yes, it is a skill that you can develop over time by consciously training your mind to focus on the brighter side of things.