No. It is far more complicated than that. Plenty of non-Americans work at NASA. Most are paid by other agencies or are in complicated contractor roles, but they are working in the same spaces at NASA. Such people have been a large part of the program since the very early days.
"In April 1959, the “brilliant and professional” Canadians, who made up a third of the Space Task Group, arrived at the Langley Research Center in Virginia to begin their new careers. [...] One of those brilliant engineers was a man from Kamloops, B.C. named Jim Chamberlin."
https://www.ctvnews.ca/sci-tech/meet-the-canadians-who-helpe...
https://en.wikipedia.org/wiki/Jim_Chamberlin
"he is often cited as an example of Canadian brain drain to the U.S. In the early 1960s, he was one of the key people that proposed and moved that Lunar Orbit Rendezvous (LOR) was the best option for landing a crew on the Moon"