Question: can you build a fence with deck boards?
Answer: Don't do it. Composite decking needs the closely spaced joists of a deck for 2 reasons, to prevent sagging and to limit warping due to thermal expansion. If you put it on a fence with only 2 cross members between panels you'll have a mess.