Hey,
Generally, foreign-sourced income would be taxable, provided that the company is tax resident in the country.
However, there is one possible, but rather difficult solution: if management is not the country, you could create a permanent establishment for tax purposes for such company in some foreign country (preferably treaty partner)︀ which has lower tax rate. Then local tax would not be applied.
Another much simpler︁ option is to withdraw profits by sending invoices from a company in a low-tax country.︂ Provided that in high-tax country, you won't have substance, management, etc. under transfer pricing rules︃ having proper agreements you can withdraw a lot of funds to lower-tax country.
Of course,︄ not all is so easy and should be properly structured.