Should a woman take the pill only when she sleeps with her husband?

No. A woman must take her pills every day in order not to become pregnant even when she does not have sexual contact.