Theoretically yes ... but it is a very tedious and expensive process, so it is better to take care of the elimination of solid particles, water, oil in the compression process by installing cyclone separators, dryers, filters, condensate drains than then have a problem with the cleanliness of the compressed air installation as well as the failure of the equipment powered by compressed air or a problem with the end product itself, e.g. when painting.