Robots taking over the world would probably fall under science fiction, yes. However just pick the category that you believe would most closely explain the genre of your story. It's more about providing the reader with a general idea of the type of story they will experience.
Of course depending on how it's written, robots taking over the world could also fall into horror. A robot taking over the world to impress another robot he loves could fall into romance.