CA buying gasoline from Bermuda, shipped via the Panama Canal, because it refuses to allow new refineries is the perfect demonstration of this.
Also why wouldn't it come from other US states? Seems easier
Yes, California is a little cleaner because we have fewer refineries and gas is more expensive, but globally we are probably about even.