Moving States - How that changes the 401k contribution deduction?

I currently live in Texas, which has 0% state income tax. For work, I need to move to California this summer. I want to max out my 401k to fully capture my employer match.

Since California taxes me at 10% marginal, would waiting to contribute to the 401k until later this year when I'm physically in California save me money on state income tax when I file? Or does it not matter if the contribution was made while I'm in Texas or California?

I'd imagine if it does matter, it could save me 10% on 19.5k which is almost 2k and makes waiting a few months potentially worth it.