I read the book, and enjoyed both.
I took them as distinct entities.
I really enjoyed The Moon is a Harsh Mistress, Starship Troopers, and Stranger in a Strange Land.
I have enjoyed many of Heinlein’s novels, especially the Lazarus Long series of books:
Methuselah’s Children, 1958 (originally a serialized novella in 1941)
I Will Fear No Evil, 1970
Time Enough for Love, 1973
The Cat Who Walks Through Walls, 1985
Some are silly fantasy, like
The Number of the Beast, 1980
and
Job: A Comedy of Justice, 1984, but still good reading.
https://en.wikipedia.org/wiki/Robert_A._Heinlein_bibliography