In Texas as long as it is past the passenger compartment and exits to the rear or sides,you are good to go....it can before the rear axle on a pickup (without a camper) as long as it has turn downs.
Here is the written law:
20.15 Exhaust System - Every motor vehicle shall at all times be...