Brain surgery is one of the most dangerous and serious types of surgeries and should only be done if absolutely necessary.
Although the brain surgery is pretty dangerous and risky it's still safe enough to where you would have a very good chance of surviving the brain surgery.
If you really need brain surgery done then I would say that it would be worth it but there are still risks with it.
Some risks associated with having brain surgery are, brain swelling, brain infections, skull infections, coma, bleeding of the brain, blood clots in the brain, seizures.
You may also experience problems with speech, memory, muscle weakness, balance, vision coordination, and other functions.
If you need brain surgery to increase your chance of your survival then having brain surgery would be a good idea but only do so if you really need too.