No, fantasy and science fiction books are not the same, but they have a lot of similarities. Fantasy books usually have lots of elements of magic or magical realism. In contrast, science fiction books usually incorporate futuristic technology that people could envision in the real world at some point. At the same time, there is some crossover between the two genres. For example, some people categorize The Hunger Games as falling into both categories.