Sentence 1: The marriage ensured that the same dynasty would continue in the male line .
Sentence 2: The marriage ensured that the same dynasty would continue on the male line .
Question: Do Sentence 1 and Sentence 2 express the same meaning? Yes or No?