Paul said, “John’s baptism called for repentance from sin. But John himself told the people to believe in the one who would come later, meaning Jesus.”
All Scripture is inspired by God and is useful to teach us what is true and to make us realize what is wrong in our lives. It corrects us when we are wrong and teaches us to do what is right. God uses it to prepare and equip his people to do every good work.