Can your exhaust still be legal if?

Say if you had bmw E46 and you wanted the exhaust pipes to come out from bottom of the back door not behind the wheel and still have the cat will it still be legal?
2 answers 2