Yes, but Gorbachev’s wall, was to keep his people prisoners, not to keep out illegal immigrants. There is no equivalence between the two walls.
I was being sarcastic. Walls stop the flow of people across a border. Period. Are they 100%? Of course not. But in the case of the Berlin wall it was pretty close to 100%.
Gorby did not build that wall. He tore it down.