I lived in CA & AZ in 2018. I completed move to Arizona, 5/2018. Last CA check had monies withheld for CA State Taxes & SDI. I receive SSA. Do I need to file in CA & AZ?

Do I pay state taxes for both states?