No, but it is highly advised to take the Advanced Placement exam as a culmination of the AP course curriculum.
Starting with 2022-2023 school year, students will automatically receive a .5 weighting for taking an AP course. If the student takes the associated AP exam in May 2023, they will be awarded an additional .5 weighting for the class.