"Safe" is an unsafe word to use when it comes to things like medical procedures, medications, surgeries, and anesthesia, etc. Indeed, no medical procedure can be deemed to be totally safe. Doctors and vets though take precautions to reduce the chances for complications.
In dogs with tracheal collapse, you can, therefore, remind your vet about your dog having this condition and discuss your concerns. Your vet may suggest pre-anesthetic blood work to ensure her internal organs are functioning properly and can filter out the anesthesia and maybe antibiotics to lower any chance of any respiratory tract infections. The vet may also leave the endotracheal tube in longer until she is fully awake and in control of her airway to ensure there is no risk of collapse.