It depends on the type of fence. Pumpkin vines can grow on chain link or even wire fences as they grow long tertiary vines that wrap around to support their growth. If you have a wooden fence, you can use wooden lattice sections attached to the fence as a pumpkin trellis.