Yep, and that's how you get Ireland's GDP per capita artificially inflated to $114k, when in reality it should be maybe a third of that...
https://9to5google.com/2020/03/02/google-dublin-coronavirus/
If they weren't already in the country for accounting purposes, they might choose different locations for offices.