Since transistors can be considered as a combination of two diodes, they can function as a diode but since they are not designed as diodes, using them as such can create problems in the circuit.