Sure, but logic and harm aren’t always what inform what laws are put or stay on the books.

There are lots of places in the US that still have anti-sodomy laws that make any kind of sex act other than penis in vagina illegal by the letter of the law.

context link