State tax filing

Thanks for your response! So in short, since my husband was resident for part of the year, we have to file MFJ for NJ if we are MFJ federal?