It's possible but not particularly straightforward.
You will have to meet the pre-entry requirements for the course you want to do. For example, you need 150 hours flight time to commence the modular CPL(A) course so that's out. It's possible that you could do an IR and MEP, which would give you the extra hours required to commence the CPL but you need 50 hours cross country flight time as PIC before you can get the IR issued.
In any case, you will need to have passed the relevant theoretical knowledge examinations before attempting either the CPL or IR skill test.