No, the Bible calls it an aboimination. The individuals who wrote the Old Testament, whoever they may have been said so, not God. The Bible was written by human beings, not God.
They lived in a primitive time when mankinf was ruled by blind superstition and ignorance. We are living in the 21st century, when mankind has suppoisedly progressed far beyond such ignorance . But apparently, many of us have not .