Sentence 1: He was active as a socialist in post-war legislation until 1951 , when he decided to focus on local politics .
Sentence 2: He was active as a socialist in the local legislature until 1951 , when he decided to focus on post-war politics .
Question: Do Sentence 1 and Sentence 2 express the same meaning? Yes or No?