the only reason to get married commitment and for having children. It doe not make sex holy not even allowed. For in Torah law sex with an unmarried woman i allowed. That is the law of pilegesh.
For good children, I think sex ha to be Friday night after midnight. see the sidur of yaakov emden for this subject in detail