Is it permissible to think about sex?
It is not permissible if it leads to an unlawful act. Moreover, a believer, male or female, should not think about things that can affect their spiritual purity and cause them to be weak when encountering an unlawful act.