Yes, Niemöller survived the concentration camps. He was released from Dachau in April 1945, a few weeks before the camp was liberated by the American army. After the war, he continued his work as a pastor and became a prominent voice in the anti-Nazi movement.
Unforgotten Voices: The Life and Legacy of Martin Niemöller