You can sit ATPL exams in lieu of CPL exams - most generally do as the ATPL theory also covers IR theory.
Not only do you need passes in CPL or ATPL theory exams in order to get your CPL, but you also need 200 hours (100 of which PIC) and to have gone through the CPL flying curriculum (25 hours minimum) and passed a CPL flight test.