Vitamin D is generally considered safe to take before surgery, but it is always best to check with your doctor if you are taking any supplements prior to surgery.