Perhaps. Also, he would probably have had available the books of Joshua, Judges, and Ruth. So you can see that King David would have had a good part of the Bible to read and absorb.
शिवाय, यहोशवा, शास्ते व रूथ ही पुस्तके देखील त्याच्या काळात उपलब्ध असावीत.