This is true of most money behaviors! My mom taught me the same thing about giving.
And even today, knowing way more about personal finance than I did at the start of my working life, I'm still amazed at how blocking out money in the budget astronomically increases your chances that that money actually goes to the thing you want.