Stores block people with smartphones

In your opinion, should stores be able to block people with smartphones from taking pictures of barcodes to do comparison shopping?