To afford something means to have enough money to pay for it.
I’ve been saving my money so I can afford to buy a new bike.
Example picture