Double trapping is prohibited for the reason that it will slow down water-born debri, thus causing a clog. One trap provides the adequate protection from sewer gases emitting into the free atmosphere.
Most common mistake DIY’rs make is installing 2 traps under a sink; not code compliant.
NYS has adopted the ICC codes, bit are creating enhancements to the codes, As far as double trapping the answer is not unless it is an indirect drain over 2 feet in developed length. (indirect drain would require airgap or air break)