It depends on the country. In Ukraine, for example, it is illegal as only officially married heterosexual couples with medical indications can start the surrogacy program.