It is good to be outdoors as much as possible. However, if a person has a health condition in which it would be unsafe for them, they shouldn't do that.
You should get outdoors as much as possible because the sun gives you vitamines it is good to go outside. Going outside can be good for you. Just stay outside in for awhile but not too long.