Do you have to get credit for the AP Scores?

It depends on the school’s AP equivalency policy. If you are enrolled, submit your score and it meets the requirements for receiving credit, you’ll automatically receive the credit/place out.
If for whatever reason, you don’t want the credit, you’d have to talk to your academic advisor/registrar official. But you’d have to be crazy to not accept the credit.