Regarded by some to be the first published science fiction book, Mary Shelley's Frankenstein tells the story of a man who creates a living being from cadavers. At a glance this book may seem to warn of the dangers of scientific experiments, I think this book encourages science as much as it discourages it.
There is, of course, evidence of the danger of scientific endeavors. The monster Victor Frankenstein creates leads to his ruin, killing his friends and family, stalking him across Europe, and watching him with glowing eyes in the night. But it is also important to realize that these are results of the creature's misery and feeling of being utterly alone, something which is Victor's responsibility, as the monster's creator, to address. As Victor seems to realize in death, that as the monster's maker he had the "duty" to "assure...[the creature's] happiness and well-being (Shelley 185)." From the moment the monster's life began, Victor has rejected his creation, leaving him to navigate the world alone. Because Victor didn't fully think his experiment through, then dealt with the results of his science irresponsibly, all the death and much of the misery detailed in the book came to pass. This could mean the book, instead of discouraging science, is encouraging responsibility in science.
There are other areas of the book that show a pro-science lean, one of which is also found in Victor's final speeches. As he nears death he warns Walton of the dangers of scientific ambition, but then his final words are "I have myself been blasted in these hopes [of scientific accomplishment], yet another may succeed (186)." Though Victor has suffered and ultimately perished because of his science, he still seems to think that someone else could succeed. His final words suggest he thinks that the science of giving life to the dead is worth pursuing, and that he ultimately wouldn't discourage others from studying the subject.
The book's preface also offers a glimpse to the author's view on scientific endeavors. The wordy and confusing preface begins
The event on
which this fiction is founded has been supposed, by Dr. Darwin, and
some of the physiological writers of Germany, as not of impossible
occurrence.
I shall not be supposed as according the remotest degree of
serious faith to such an imagination;
yet, in assuming it as the basis
of a work of fancy, I have not considered myself
as merely weaving a
series of supernatural terrors. (3)
In this passage Shelley (actually her husband) suggests that there is some real, "not impossible," science is in this book, and thus the novel should not be received as merely a ghost story. To me, this suggests that the author sees this situation as somewhat plausible, at least the idea that a scientist can create something detrimental and uncontrollable. When this idea is viewed with the events of the book, this could be seen as warning; though this particular instance may be fictional, there are other sciences that are both possible and dangerous.
But I think the preface also sparks the imagination. If there is some science in the re-animation, what else is possible? People of this time couldn't have predicted the sciences we have now, such as cloning or growing artificial organs in labs, Mary Shelley could have just as easily wrote about one of these situations. This is also the way Victor first becomes interested in natural philosophy, not from hard science, but from the possibilities science presents. Ultimately the preface says don't write this book off as totally inauthentic science, don't read this as a ghost story, read this as something that could happen. I think in encouraging this at the start of the book, the author wants the reader to imagine other sciences that could come to be.