No. But if you really want something and you feel sad about the money you have to spend on it, because the money seems better to you than the thing you would get, you can not afford it really.
Just for example: Imagine I want to have butterfly. It is priced at 200$. But I decide not to buy it, because I feel bad about the money I spend. In that scenario I can not completely afford it, because I think about missing the money I would spend.
So what I mean is, affording something is not only about the money, but also the mentallity. You can afford something if you feel good about buying it and dont think you would be better of keeping the money. So technically you could afford something you had to spend almost all your money on, but you feel way better with the thing you bought and dont feel bad about the money.