The Bible Undressed

Did the New Testament authors use other books and stories as sources for their own writings? It wasn’t all just the Holy Spirit?