Yes. The government is already investing social security money by buying bonds.
You would be correct, except for one minor thing: They're not investing it, they're spending it.
And, yes, that makes "raiding" accurate.
When a corporation issues and sells stock, what do you think they do with the money? Bury it in the parking lot? They spend it.