What is the meaning of [You can’t always get what you want]

MEANING Don’t complain if you don’t get what you want
EXAMPLE
A: I really wanted to see that movie, but I didn’t have enough money last week
B: It happens. You can’t always get what you want, right?