The attitude of Buddhism is that the sex between two love-bearing people, whether married or not, is moral. Sex before marriage, conducive to spiritual development from the Buddhist viewpoint, does not violate the third Precept (not to engage in wrong sexual behaviour).