It never gets longer. The projection is at most as long as the segment itself, and usually shorter.
In Fig. 4.3 the segment AB has length l and its projection DC has length p. Drawing AE perpendicular to BC makes AECD a rectangle (AD and EC are both perpendicular to the plane, so AD ∥ EC and AD = EC; that forces AE ∥ DC and AE = DC). So AE = p, and ∠AEB = 90°.
AB = l, AE = p
l² = p² + BE² ⇒ l² ≥ p²
p ≤ l