The short answer is YES; of course it takes money to make money. To make money in the stock market, you must have money to make the initial stock purchases. Starting a business requires money to buy inventory, marketing materials, office space and equipment. Even lottery winners have had to have the seed money.
Something most rags-to riches stories have in common is that a good budget is always needed to help anyone achieve financial security. If you want to significantly improve your credit, you have to learn how to pace your spending and increase your savings.