I had a couple of birds with this issue. One had been shot through the wing, it healed nicely, no problems.
The other one had a pellet lodged into the shoulder bones. My vet chose to leave it in place as surgery would have caused more damage. He is not flying, but otherwise doing fine.
Reti