Yes, as per the UPSC CDS notification it is compulsory to appear for both papers.