Energy can be transferred between molecules during collisions, but the average kinetic energy of the molecules does not change with time, as long as the temperature of the gas remains constant. Collisions are perfectly elastic.