Yes, it's very simple physics that compressing air will generate heat. This heat energy comes from the decreasing volume of air as it is being compressed. Air temperature is directly proportional to the kinetic energy of the molecules, and as the compression begins, the molecules kinetic energy increases and so does the temperature.