That's very correct. The things recorded know the scriptures are there for us.
Romans 15:4 (OEBus)
Whatever was written in the scriptures in days gone by was written for our instruction, so that, through patient endurance, and through the encouragement drawn from the scriptures, we might hold fast to our hope.
The same thing is said in another way in Paul's first letter to the Corinthians
I Corinthians 10:11 (Living Bible)
All these things happened to them as examples—as object lessons to us—to warn us against doing the same things; they were written down so that we could read about them and learn from them in these last days as the world nears its end.
The Word of God is the wisdom of God presented to us. If we embrace it and live by it we'd be saved from losing out in life.
@kingsolo Your comment is appreciated.