Yes, this anime is indeed an adaptation of a novel written by author Ziyi 281 (紫伊281). In addition, this novel has also been adapted into a Chinese drama!