Yes, it is and there isn't any rule for spelling, because Ancient Greeks had different pronunciations for ι, η, υ, ει and οι and they had not any problem. In Modern Greek, all of them have the same pronunciation and this confuses even the native speakers :P