It's perfectly legal, and it's the usual way that most companies use. Qatar's IT systems and "minds" are advanced-enough to allow this.