Most Coursera courses and degree courses are stackable. If you’ve already completed, or taken part of, a public Coursera course that’s also included in a private degree program, your progress will be automatically moved to the degree course. You will not have to retake a Coursera course if you already completed it.
Some degree programs require you to start in a public Coursera course and then transfer into the degree course to access for-credit content. Transferring this way means you will keep all the grades you’ve received, but you won’t keep peer reviews given or peer reviewed assignment submissions.