That's not true. Companies aren't free to set transfer prices. The IRS has many rules on how much a company can charge a foreign unit for a product (and vice verse). That method of tax avoidance was closed a long time ago.
US regulations also don't do anything to transfer prices in other countries. Google apparently pays something like 2.4% tax on their foreign profits because they funnel them all to the Bahamas.