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