No, the stimulus was supposed to create jobs. Had it done so, it may have also created enough tax revenue to begin paying for itself, but it certainly wasn't passed as a deficit-reducing measure as much as an economic disaster-averting one.
The rest of your thought is beyond the scope of what I was addressing, but I will say it isn't the high-paying jobs that are leaving the country, it is hum-drum middle- and low-pay-scale positions, and even coddling legislation and tax-cuts to encourage corporations to keep manufacturing, CS, etc stateside hasn't worked (see: Rust Belt). The returns corporations get on product with minimum labor costs are too attractive, and the only way to compete with those #s short of legislation is to lower the US standard of living to match China's or hope for a crazy global energy crisis that makes shipping displace the savings on labor.