It depends on the reason why they're stopping you. If they actually think you are stealing, then no, they can stop you. https://en.wikipedia.org/wiki/Shopkeeper's_privilege