Does the play(A Doll’s House) suggest that women must leave their oppressive husbands or lovers in order to gain their independence and selfhood?

Does the play(A Doll’s House) suggest that women must leave their oppressive husbands or lovers in order to gain their independence and selfhood?