"You can't have your cake and eat it" doesn't make sense.
That's because it is popularly misquoted.
The correct saying is
"You can't eat your cake and have it"
Obviously!
Nothing is real unless it can be named; nothing has value unless it can be sold; money is worthless unless you spend it.