Yes. An author is essentially the person who originates the idea, plot, or content of the work being written and therefore is the owner of the material.
A writer (ghost writer) may be someone engaged by the author with the necessary writing skills.