While they don’t technically need one, a trellis is a good idea when you are companion planting with peas and even in general. A trellis makes them easy to harvest, for one thing, but as far as with companions, it also helps to ensure that their chosen companion plant doesn’t give them too much shade. With that trellis, they should still get plenty of sunshine, and so you shouldn’t have any problems there.