Yes they do. As a kid our (admittedly not particularly lavish) family summer holiday was paid for each year by the modest royalties my father, an academic, received from a couple of academic textbooks he had authored.
Right, that was worded too universally, but this is what I mean: royalties here are supplementary to a salary, not a wage in themselves. The research was funded before publication.