Depends on whose scripture.
Judeo-Christian scripture condemns it. Here's one of many examples:
Lev 18:22 “ ‘Do not have sexual relations with a man as one does with a woman; that is detestable.
You literally just proved my point: I said that romantically being attracted to the same sex is not a problem but having anal sex is, and that is exactly what your quote said.