Yes. It can be done by making donations to charity, changing the country of tax residence, registering a company abroad or choosing a favorable tax regime. These are all examples of legal ways of optimizing taxes.