Yes, you can file jointly for federal and separate for state tax if you were a resident of California and your husband was resident of Pennsylvania. If you only lived/worked in California and he only lived/worked in Pennsylvania, neither of you has to file as a non-resident in the other sate. You both need to be able to show that you maintained separate residences in your respective state.
**Say "Thanks" by clicking the thumb icon in a post
**Mark the post that answers your question by clicking on "Mark as Best Answer"