Yes within 20 days of residency.
Per California DMV registration rules.
Cite this answer — stable link: smoganswers.com/q/i-just-moved-to-california-do-i-need-a-smog-check/#answer