That's not true. If anything the Bible teaches us many things that are severely untrue.
Exodus 21:7 says its ok to sell your daughter into slavery
Exodus 35:2 says anyone working on the sabbath should be put to death
Corinthians 11:14 says if a man has long hair it is a shame unto him and in the next verse that all woman should be covered when praying.
Also the verse people site when saying that a man shall not lie with another man and what not, well if you flip to the next page theres a passage that says that its ok to stone to deat disobedient children.