We’ve been doing that for years. My daughter was on anti-seizure med that stripped her of Vitamin D.
Unfortunately, my kids still got sick.
I did Dilantin and Tranxene for 13 years after a head injury in 72. It made me stupid. When I finally got shut of it it took me another decade to return to mental status quo ante. The injury had likely healed several years prior to getting shut of the stuff. It put a lid on my will power so that even though I knew had to quit I couldn’t go against what the doctor said.