No, this is not up to the approved code for compressed air systems. The PVC is an oil based product and it does not react properly to heat, vibrations and oil vapour that is carried in the air compressor discharge air. The PVC is prone to bursting under the normal air pressure and unit operations. Consult your local building inspector for piping recommendations.