Yes - if they're reducing the costs (real estate, cashiers, etc) of the store, they can get money from that side of the transaction. The same is true for food delivery: restaurants save a lot of money if they're not providing space, servers, dishwashers, etc.
This isn't to say that many won't go out of business. Many will, and the market will consolidate.