Can a transistor be obtained by connecting two semiconductor diodes back-to-back?

No. Because in case of two discrete back-to-back connected diodes there are four doped regions instead of three and there is nothing that resembles a thin base region between an emitter and a collector.