I didn’t register to vote, can I? California

I’m from Los Angeles but out of town in San Francisco. I recently became a citizen and I forgot to register. Am I still able to vote in SF if I’m from LA? Or do I have to go back to LA?

Thank you