Depends on the husband, depends on the wife, depends on the friend, depends on the strength of the marriage etc.
It's not okay if it harms the marriage and okay if it does not.
Equanimity is the ground. Love is the moisture. Compassion is the seed. Bodhicitta is the result.
-Paraphrase of Khensur Rinpoche Lobsang Tsephel citing the Guhyasamaja Tantra
"All memories and thoughts are the union of emptiness and knowing, the Mind.
Without attachment, self-liberating, like a snake in a knot.
Through the qualities of meditating in that way,
Mental obscurations are purified and the dharmakaya is attained."
-Ra Lotsawa, All-pervading Melodious Drumbeats