Well, as many parents will attest, spinach is good for you-but only if it doesn't cause you to throw up. Similarly, getting rejections may be good for you, but only if they don't cause you to give up. Perhaps a better response is that all successful authors get rejections.
Successful writers grow as a result of rejection because they learn from experience.
Some aggressive novices ask the editors for advice. They ask the editors of referred journals for copies of the reviewers' evaluations of their manuscript. With this feedback in hand, rejections can become painful blessings. Perhaps the best advice for dealing with rejections is to study the rejections immediately, make the necessary improvements, and promptly send the manuscript to another publisher. If no feedback is received, either ask for it, or quickly examine your returned manuscript for editorial marks.