Except there’s nothing in Scripture to indicate that that was the case as when Joseph found out Mary was pregnant, he considered divorcing her until the angel told him to not be afraid to take Mary AS HIS WIFE.
If the marriage was for convenience as proposed, then he would not have considered that.
This may come as a surprise to some Luke chapter 1 is all about Jesus Christ as our promised Messiah.