Can a non-resident alien continue to contribute to a Roth IRA after they have left the USA?

A resident alien opened a Roth IRA while living and working in the USA. Now, they want to continue contribututing to this account even though they are no longer living in the US. Is this possible?