Yes, after five years of legal residence in Portugal under the D2 Visa, applicants can apply for permanent residency or citizenship. To qualify for citizenship, it may be required that you pass a basic A2-level Portuguese language test. You must also demonstrate continued residency, and show integration into Portuguese society.