No ghostwriters do not get royalties for the books they write. The copyright fully belongs to the Author for whom the project has been initiated.