Sometimes to usually. She only just turned two but hates riding in the cart. I let her walk until she's demonstrated that it's a "run away from mommy at every chance" day. Sometimes I have to say "Stay near me" about 8000 times, but she does, so I let her walk.
In line, she has to get in the cart, or else she'd be off exploring while I'm unloading/paying.