No, it is not compulsory. An individual may be able to sit for the CPA examination without having maths as a subject in class 10th or 12th.