Both events happened if that's what you mean.
Israel, the son of God, was called out of Egypt.
Christ, the Son of God, was called out of Egypt.
My point is that the literal Israel that came out of Egypt is not what the NT writer say was the fulfillment in that prophetic veiling.
In other words...