Yes,you are right.
The two words have no obvious difference in the most of the time."作者" 's range is larger than "作家”。The latter often be used in the creation of literature. And "作者” roughly means a framer of something. So "作家" refer to a writer of of books/novels/non-fiction etc. while 作者 can also mean the writer of a piece of music (like composer).但如果是创作音乐,我们更习惯说“作曲家”。
I hope my answer can help you.