Xanax can cause birth defects in an unborn baby. Do not use Xanax without your doctor's consent if you are pregnant. Tell your doctor if you become pregnant during treatment. Use an effective form of birth control while you are using this medication. Xanax can pass into breast milk and may harm a nursing baby. Do not use this medication without telling your doctor if you are breast-feeding a baby.