Sure, but elder and older are not synonyms. We usually use elder in this sense as a noun. So, "Michael is gay elder."
But when we use it as an adjective, it has a different sense, meaning the older of two people. So, "Michael is an elder gay man" doesn't work.
Just saying you can't just swap out elder in place of older. Elder only works in this context when used as a noun.