chi-square question

#1
Hello, I am comparing two different groups (people who have been cheated on in the past month and people who have never been cheated on) on whether or not their parents are divorced. They answered in a yes/no format and I want to see if there are any differences between the two groups. Just to make sure-I run a chi-square test for this, right?