Only Indian residents can open a PPF account. So yes, if you already have a PPF account before you become an NRI, you can continue to invest in it for the lock-in period and earn interest at the rate applicable for resident Indian investors. However, NRIs cannot open new PPF accounts.