RSU getting taxed for NY and CA even though I have moved

My RSU's were granted when I was in NY in 2023, I moved to CA from the beginning of 2024, now when my RSU's are vesting state tax is getting deducted for both the state NY and CA. I have paid around 14k tax to NY on RSU income of 229k. Can I claim those 14k tax from CA as a credit which I have paid to NY.