Answer
Yes, Margaret Cavendish did write fiction. In fact, she is considered one of the pioneers of science fiction. She wrote many novels and short stories, including The Blazing World, which is often considered to be the first science fiction novel. In this book, she describes a fictional world where the protagonist travels to a new planet and encounters strange and wonderful creatures.