Not all of it. The truth is that much of the Bible is either figurative, or wrong. The most infamous example is the six days in Genesis chapter one. But there are other examples.
1 The Lord sent Nathan to David. When he came to him, he said, “There were two men in a certain town, one rich and the other poor. 2 The rich man had a very large number of sheep and cattle, 3 but the poor man had nothing except one little ewe lamb he had bought. He raised it, and it grew up with him and his children. It shared his food, drank from his cup and even slept in his arms. It was like a daughter to him.
4 “Now a traveler came to the rich man, but the rich man refrained from taking one of his own sheep or cattle to prepare a meal for the traveler who had come to him. Instead, he took the ewe lamb that belonged to the poor man and prepared it for the one who had come to him.”
5 David burned with anger against the man and said to Nathan, “As surely as the Lord lives, the man who did this must die! 6 He must pay for that lamb four times over, because he did such a thing and had no pity.”
7 Then Nathan said to David, “You are the man! This is what the Lord, the God of Israel, says: ‘I anointed you king over Israel, and I delivered you from the hand of Saul.'" (II Samuel 12:1-7)
David did not kill an actual lamb of a poor man. The lamb represents David's adulterous affair with Uriah's wife, Bathsheba.