Yes, a trellis is necessary to support luffa gourd plants.
Luffa gourds are prolific growers with an abundance of vines and will need sturdy trellises as they grow and mature. Keeping the vines off the ground allows the gourds to grow straighter, and also prevents rot and disease.