The treaty prevents you from being taxed on it twice … yes. However. If you establish tax residency in a foreign country, you might/would file a tax return in that country and then you would file your worldwide income return with the U.S. and then you would get credits for taxes paid outside of the U.S. if you had a filing requirement.