It is technically feasible, but we can't say if your particular application is feasible without more information.
My company has done the opposite in the past - re-purposed air compressors for natural gas service, including sour gas service. However, we had to work with the compressor manufacturer to ensure that all materials of construction were suitable, and I'm sure there were other considerations, although the qualification for gas service was done long before I worked here.
Basically what I'm saying is that you should contact the compressor manufacturer or packager as they'll be much better positioned to answer your question that we are.