I don't think so. The Ancient Greeks had religion, and they invented homosexuality like everything else.
I think you're interpreting religion as cause-and-effect, when I think it's more correlation. Women's rights, treatment of homosexuality, and local religious beliefs often go hand-in-hand. The religion reflects local culture, but it doesn't always create it.