Vitamin D2

Has anyone been successful getting pregnant taking vitamin D2 supplements their obgyn prescribed?