Yes. However, it’s important clarify that this is Tax ID number and not a residence permit. A NIE is a Tax ID number.