No, AP exam scores are separate from your GPA and final grades. Teachers might offer incentives to get students to take the exam but deciding not to take it won’t affect your final grades.