Can spiders be gay

For these animals, there is documented evidence of homosexual behavior of one or more of the following kinds: sex, courtship, affection, pair bonding, or parenting, as noted in researcher and author Bruce Bagemihl 's book Biological Exuberance: Animal Homosexuality and Natural Diversity.
Many species of insects and spiders engage in homosexual behavior, like courting, mounting, and trying to mate with members of the same sex. But it is unclear what role evolution plays in this.