The price at the pump is determined before the fuel reaches the pump. I’ve talked to enough owner/operators to know that. They do not set the price pump.
The selling price to the station owner is set before it reaches the pump, and gas stations tend to price their existing inventory high enough to pay for the inventory that's on its way, with a (meager) profit margin built in. That's not the same thing as the distributor "setting" the price at the pump, which would be illegal unless the distributor also owns the station.