One should remain in household life with the aim of understanding the ultimate goal of life (tattva jijnasa). Then household life is as good as the life of a yogi… As soon as one deviates from the injunctions of the sastra, the purpose of household life is immediately lost in confusion.
From Srila Prabhupada's purport to SB 8.16.5