Your trap arm can be used as long as necessary, even though your toilet still needs a vent. If your plumbing code is the UPC, the toilet's trap to vent distance is limited to 6 feet.
Let's Get It Fixed!
HomeX virtual experts will assess your issue (for free!) and can resolve simple problems.