If The Bible would state this verse or part of scripture is a metaphor, then yes. But not some person declaring that The Bible is saying that, then no.
Examples:
This passage Paul speaks to this being symbolic of the two covenants freewoman representing the Jerusalem above through the promise and bondwomen representing Mount Sinai which gives birth to bondage, which is Hagar— for this Hagar is Mount Sinai in Arabia, and corresponds to Jerusalem which now.
What Paul is not saying though is that these accounts are symbolic from The Tanakh. Paul actually believed in a historical real living Abraham, Sarah and Hagar from The Tanakh.
Tell me, you who desire to be under the law, do you not hear the law? For it is written that Abraham had two sons: the one by a bondwoman, the other by a freewoman. But he who was of the bondwoman was born according to the flesh, and he of the freewoman through promise, which things are symbolic. For these are the two covenants: the one from Mount Sinai which gives birth to bondage, which is Hagar— for this Hagar is Mount Sinai in Arabia, and corresponds to Jerusalem which now is, and is in bondage with her children— but the Jerusalem above is free, which is the mother of us all. For it is written:
“Rejoice, O barren,
You who do not bear!
Break forth and shout,
You who are not in labor!
For the desolate has many more children
Than she who has a husband.”
Now we, brethren, as Isaac was, are children of promise. But, as he who was born according to the flesh then persecuted him who was born according to the Spirit, even so it is now. Nevertheless what does the Scripture say? “Cast out the bondwoman and her son, for the son of the bondwoman shall not be heir with the son of the freewoman.” So then, brethren, we are not children of the bondwoman but of the free.
Another Example:
Nothing from The Bible states this is a metaphor and did not happen exactly the way it is recorded in The Tanakh. People (even people who say they believe in a literal Bible reading) do not take this as a literal account. Not because of anything The Bible states, but they do not take it literal. Simply because of the lies of science, that is the only reason.
Then Joshua spoke to the Lord in the day when the Lord delivered up the Amorites before the children of Israel, and he said in the sight of Israel:
“Sun, stand still over Gibeon;
And Moon, in the Valley of Aijalon.”
So the sun stood still,
And the moon stopped,
Till the people had revenge
Upon their enemies.
Is this not written in the Book of Jasher? So the sun stood still in the midst of heaven, and did not hasten to go down for about a whole day. And there has been no day like that, before it or after it, that the Lord heeded the voice of a man; for the Lord fought for Israel.