Correct, as long as they have already paid the tax on it.
If they charged tax twice on the same gas, that would be illegal.
Retail outlets collect sales tax at the time of sale, based on the sale price, and forward the money they collect to the state on a regular basis. Not doing so gets them in serious trouble.