I don’t think a simple yes or no would be adequate for this question. First, not everyone who has AIDS is homosexual. Innocent children are brought in the world with the disease already. Many innocent women contract AIDS as a result of rape or incest or an unfaithful husband; it’s then often passed on to their unborn babies. Drug users develop AIDS from tainted shared needles.
Basically AIDS, like so many diseases, comes as a result of an unhealthy lifestyle on someone’s part, but that does not mean that it is a specific judgment against a specific sin. It falls in line with the biblical principle that says that what we sow we ultimately reap. There is no question that homosexuality goes against God’s Word. So do adultery, abortion, murder, gossip, slander, back-biting, jealousy and the other sins Paul lists in Ephesians 2. God hasn’t brought specific judgments on these sins or others, or all of us would be singled out.
Jesus didn’t come to condemn us, we were already condemned. Instead, He came to give us eternal life. The Bible is our standard for faith and practice. Homosexuality is a sin that God will forgive for all who repent. The specific sins in all of our lives that condemn us can also be forgiven by Him (see 1 John 1:9).