Yes, you can compress the encryption files without losing the encryption. There are many third-party tools available to compress.
However, it's advisable to compress the file first before encrypting. Encryption often scrambles the data, making it appear random and thus less compressible.