Vitamin D supplements cant be takes as “vegetables” as high dosage is toxic.
If you examine this deeper, you'd find that it's not very easy to do, more so when you follow a doctor's recommendation and just overdo it in an effort to enhance its effects. Take a look at the dosage of supplements, look up online on how much is toxic, and the answer will change your mind on unfounded fears such as this.
I'm purposely not giving details in this comment so that people are free to lookup different (scientific) sources and decide.