What is the meaning of [To go from rags to riches]

To go from being poor to having a lot of money. “Actor Jim Carrey went from rags to riches. At one time, he was living in a van, but he continued to work hard and eventually became one of the highest-paid comedians in the world.”