State tax filing

Thank you. In regards to what my job deducts, they are taking both CA and MD state taxes. So, that is accurate? To recap, if so, I then need to file my taxes for both states, one resident and one nonresident. Making sure that I file the MD tax return first. Correct?