To get THC metabolites (stored in fat cells) out of your body, you should eat, drink, piss, shit, exercise (not in that specific order).
If you have the metabolites in your system, exercising will process that stuff out of your body... so you wouldn't want to exercise leading up to the test...