12 year old daughter depression prescribed Xanax

My 12 year old daughter has depression and was prescribed Xanax. Is this alright?

According to the prescribing information for Xanax (alprazolam), safety and effectiveness have not been established in patients younger than 18 years of age. You may want to contact your daughter’s health care provider to discuss treatment options