When (or if) you take in a severely underfed snake, it will probably eventually catch up in growth if there's no other health issues negatively affecting the snake (things like illness or parasites) but be very careful to take it very slow & small on food. The worst thing you could do is feed this snake a normal-sized meal right off- you'll need to feed very small easily digested prey & more frequent for some time to come, & only increase gradually as the snake is able to digest.
A starved snake will not have enough digestive enzymes yet to properly digest- food is required to produce those enzymes- so be prepared to stay patient. It can be very rewarding to take in snakes that truly need better care & watch them progress, but only do so if you feel you can handle this better than the previous owner did- that may also mean vet bills as well as the extra food & housing costs, as well as your time.