No. Judy Garland was not pulled from another film to star in The Wizard of Oz. MGM cast her specifically for Dorothy after considering Shirley Temple (loan denied by Fox) and others. She was under MGM contract and assigned to the project as a major production.