Does back to back connection of PN diode works exactly as transistor?
No. A BJT shares one of the regions with both junctions, plus the regions in a BJT are asymmetrical in both size and doping strength. Both of these factors contribute to the fact that BJTs act as current amplification devices rather than just pairs of rectification devices.