Yes! Under the influence of ultraviolet rays, our brain produces serotonin, dopamine, and endorphins, which improve our mood.