can i connect two similar antennas to two ends of a cable to to re-transmit the signal received from one end?
Yes, a passive repeater such as you describe can work, however it does incur losses due to the cable, connectors and antenna efficiencies.  Whether these losses exceed the attenuation you would get with no repeater but a wall in the way is situation dependent.