The effect of a divorce is to end a marriage.

If somebody is divorced when they don't have permanent residency or when they're a conditional permanent resident, it is at best more difficult ot gain permanent residency. What that means in a specific case depends upon its facts.