NO, no solvent may be used to clean a compressor.
The compressor must be disconnected from the circuit in order to prevent a loss of oil which could result in damage to moving parts. The control and expansion valves as well as the filters/driers must also be disconnected or removed.