You asked:

does 4 liters equal 1 gallon

No. 4 liters is not equivalent to 1 gallon.