Pinching out the growing tip repeatedly will maintain it at its current height. Pinching may or may or may not cause it to push out branches further down the stem.
Pruning off a top section is the best way to shorten a plant that has already gotten too tall.
Neither pinching or pruning will affect the overall health of the plant. They just affect the appearance of the plant.