Yes, it works while the tank still has aggro.
However, plenty of the more experienced people on these boards will tell you that it's a waste of energy, because there are better ways to manage your threat. On boss fights, one of the most important tactics is to use Vanish to wipe your threat part-way through the fight - after you do that, you should be able to DPS to your heart's content.