There isn’t a single published writer out there who hasn’t been rejected at least once.
In fact, I think you’d struggle to find a writer who’s only been rejected once.
Even Stephen King had short stories rejected when he first started out.
Harry Potter was rejected by numerous publishers, and J.K.Rowling had some pretty harshly-worded rejection letters for her Cormoran Strike novels, too.
Some authors get to the point where their name alone is enough to attract the attention of a publisher.
To get to that point, though, you have to go through what feels like endless rejections.