Could they? Soviet Union did not let its citizens leave easily.
It's different nowadays, and you'll be surprised to learn:
- that Google an likes have more than enough offices outside the U.S.
- that quite a lot of their employees are Russian citizens, Russia has been a talent pool for them for quite a while
- that the war changed very little for their employment
- and that Google did not stop hiring from Russia after the war began