Yes, every Disney ride ends with a walk through the associated gift shop. It takes strong parents to get through them without buying a trinket each time.
We gave our kids a souvenir limit for the trip. They knew how much they could spend and when that money ran out, that was it. It was our first real lesson in budgeting and it was a hit (particularly giving my older son the cash to hand over to the cashiers — it felt much more real than putting it on our credit cards).