I’m sorry but no we can’t get enough D from food (unless you are an Inuit and you live on oily fish?).
This is taken from the NHS;
“How do we get vitamin D?
Our body creates vitamin D from direct sunlight on our skin when we're outdoors. From about late March/early April to the end of September, most people should be able to get all the vitamin D we need from sunlight.
We also get some vitamin D from a small number of foods, including oily fish such as salmon, mackerel, herring and sardines, as well as red meat and eggs.”
One of the big problems is that not many people eat oily fish today and even if they eat the recommended twice weekly amount it’s still impossible to get all your requirements from food alone.
I’ll link the nhs guidance below to help:
www.nhs.uk/live-well/healthy-body/how-to-get-vitamin-d-from-sunlight/