Ds was advised (by his advisor) to not use AP credit to place out of the intro classes in his intended major so that he had everything in his foundation when he took the next (required, and notoriously challenging) level. He was glad he did.
He happily used AP scores to place out of classes that met distribution requirements.
A friend had a D at the same college. She didn’t follow the advice my son was given and skipped the intro level in the same intended major. She struggled so much at the next level that she decided to major in something else.
It differs from school to school and by discipline. I would definitely get input from an advisor, especially in classes that build on a base.