your body produces all you need if you get a moderate amount of sunlight.
Covid lockdowns would of kept people inside more and created a vitamin D deficit which would of made catching Covid even worse for most people.
The lockdowns were a 100% total cluster
It also depends on where you live. If you live on the equator, you can get it all year long, but many places it may be hard to get in winter.
From intermountainhealthcare.org
The best way to get vitamin D is naturally from the sun. However, if you live above the 37th parallel (37 degrees latitude), or anywhere north of Los Angeles, then you really can’t get much vitamin D from November to March when the sun is very low in the sky (all of Utah is above the 37th parallel). Thus, we have to rely on the vitamin D we were able to store up from the summer or the vitamin D we can take in through our diets and supplements. Unfortunately, there just are few vitamin D food sources as our bodies really were designed to get the vitamin D we need from the sun