Although karyolysis is primarily associated with necrosis, it can also be observed in the late stages of apoptosis. However, in apoptosis, the nuclear degradation is more orderly and does not involve the same extensive enzymatic breakdown seen in necrosis.