I'm tempted to say this belongs on ELU, but ...
Almost. It's not clear _what_ the husband thinks, but I'd say it's implied that he's blissfully ignorant.
A more prosaic rendering would be _“it's only [her] husband who doesn't know that she is a wh-re”_.