Yes. Anyone can ask anything, to demand is another issue, you would need reasonable suspicion.
As far as the bag checking goes, I don't like it. I usually don't frequent stores that require me to do so. However, I do understand, and I'm not offended. Actually I'm rarely offended.