True, but there is a difference between residence for tax purposes and residence for immigration purposes. You may live a certain number of years (7-8?) in the US, give up your greencard, and still be considered a resident for tax purposes for life or until you relinquish with the IRS and pay your exit tax.