The first creation of Allah (swt) is thought by some to be the pen.
I have a differeing translation of this hadith at home, where white its pearl and seconds IIRC is moments, but here goes:
According to Ibn Abbass, in a hadith narrated by Al-Tabarani, the Prophet[PBUH] said: "Allah created, "Lauhul Mahfuz", or "Preserved Tablet" it is white and [durrah] rounded shaped, its pages are created from [yaaqoot] read ruby, its pen is light, and the writings are [sparkling] light of Allah. On each day, in 360 seconds, He creates, He enriches, He causes death and gives live, He promotes and demotes and does whatever He wishes!"
From the Genesis-How Allah Created the Universe
So IMO its possible the Koran is a later creation and came from the pen.