Always... Unless they can put enough pressure on the secondary to make a spy a liability. Not many QBs reach that point (Rodgers, Wilson, and Mahomes?)
Having motion as a threat can counteract some of the spy’s effectiveness though. Nothing is completely reliable, but teams have been utilizing the jet sweep to open up screens on the opposite side.