Certification Question

I currently work in NYC and have met all requirements to be certified here. However, I plan on moving back to California by the end of this year and have been told it would be meaningless to apply for a CPA in NY State if I am planning to move away. Outside of the ethics exam that CA requires, does anybody know if you can be legally certified as a California CPA while working in NY? I plan on going back in the near future, but if I can be certified in a different state sooner than later, that would be much appreciated.