Sentence 1: Also in the presidential cabinet he had to occupy temporarily the Ministry of Interior twice over 1838 .
Sentence 2: He also had to temporarily occupy the Ministry of the Interior in the presidential cabinet over 1838 .
Question: Do Sentence 1 and Sentence 2 express the same meaning? Yes or No?