Is it bad for babies not get fresh air?

If a baby stays at home everyday and doesn't get no sun light in winter, will it effect their growth/development?