The people the gospels are named after were alive at the same time as Jesus, the same thing with the letters from Paul and other New Testament materials, but if you study the earliest copies known, they were not written by the author, they began as oral traditions.
Ever play the game 'telephone'? it illustrates the trouble with oral traditions.