One cannot enjoy sex life daily at home or elsewhere and attend a so-called yoga class and thus become a yogī. One has to practice controlling the mind and avoiding all kinds of sense gratification, of which sex life is the chief. In the rules of celibacy written by the great sage Yājñavalkya it is said:
karmaṇā manasā vācā sarvāvasthāsu sarvadā
sarvatra maithuṇa-tyāgo brahmacaryaṁ pracakṣate.
“The vow of brahmacarya is meant to help one completely abstain from sex indulgence in work, words and mind—at all times, under all circumstances, and in all places.” No one can perform correct yoga practice through sex indulgence. Brahmacarya is taught, therefore, from childhood when one has no knowledge of sex life. Children at the age of five are sent to the guru-kula, or the place of the spiritual master, and the master trains the young boys in the strict discipline of becoming brahmacārīs. Without such practice, no one can make advancement in any yoga, whether it be dhyāna, jñāna or bhakti. One who, however, follows the rules and regulations of married life, having sexual relationship only with his wife (and that also under regulation), is also called brahmacārī. Such a restrained householder brahmacārī may be accepted in the bhakti school, but the jñāna and dhyāna schools do not admit even householder brahmacārīs. They require complete abstinence without compromise. In the bhakti school, a householder brahmacārī is allowed controlled sex life because the cult of bhakti-yoga is so powerful that one automatically loses sexual attraction, being engaged in the superior service of the Lord.
Ref >> Srila Prabhupada Vani.