Compression ratio to temperature

No.14170194 ViewReplyOriginalReport
So if you take a volume of air or anything else, If its 20 Celsius, and you compress it to half its volume then does that raise the temperature to 40 Celsius?