Probably not cost effective. You need a lot more hardware than just a ball and hitch to ensure there is no jackknifing or other weird unpredictable behaviors. A lot of work goes into ensuring trailers almost never push forwards against their hitches (trailer brakes are in a large part a thing to solve just this problem)
I bet you could get a fifth wheel hitch to play nice though if the software was tuned correctly
I bet you could get a fifth wheel hitch to play nice though if the software was tuned correctly