Yes, it can. Numerous scientific studies have demonstrated that getting out and about in the natural environment can raise spirits, help to ward off feelings of anxiety and even lift people out of depressive states. In particular, walking around in wooded areas is known to have a significant effect on mood. When you are out in the sun for a period during the day, your body is able to absorb the vitamins it needs to help it function properly. How this works with respect to mental well-being is not yet fully understood, but the research all points in the same direction. Being in nature can only benefit you even if it is for short periods.