The addition of the fifth sugar moiety, either N-acetylglucosamine or N-acetylgalactosamine, initiates further chain elongation, resulting in the formation of heparan sulfate or chondroitin sulfate, respectively.