No, it is not a sin to have a djinn, or to ask it for guidance. We as humans, ask our relatives and ancestors who have passed for their love and blessing. We ask our angels and spirit guides for guidance. Some of us turn to our spirit animals for love and protection. Asking a djinn for help is no different.