Thank you for posting in Microsoft Q&A forum.
Yes, we have to upgrade the CAS first.
Starting at the top-level site in the hierarchy, after the top-level site upgrades, you can begin the upgrade of each child site. Complete the upgrade of each site before you begin to upgrade the next site.
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Add comment".