Yes. Philip K. Dick wrote this along with the book that Blade Runner was based on (Do Andriods Dream of Electric Sheep) as well as a lot of other Sci-Fi/Cyberpunk books and short stories.
You just made me want to see this movie even more. I had no clue of its background.