That’s the way California did it to me when I moved back to Texas in 1989. I protested and they hit me with a tax lien filing that showed up on my credit. I ended up paying them and never went back.
CA tried to tax soldiers for TDY duty in their state. Those at DLI for 1.5 years got stuck with paying CA state income tax AND their home of record state income tax. I think some legislation unscrewed THAT fiasco.