IMHO, writing a book with a particular ideology (be it sociological, religious, political, you name it) can perfectly work in a SF novel. Think about Orwell or Huxley for instance.
In France we have an author, named Pierre Bordage (maybe you know him, his work has been translated I think, but I...