Exactly. The Law codes in Leviticus were applied exclusively to Jewish people and anyone outside of their religion were not expected to abide by them.
This is something that I don’t think a lot of people realize about Judaism. Doesn’t a big part of your religion involve engaging in midrash and reinterpreting the Torah in a variety of ways? It’s very different from the Christian/Muslim mindset of “there is only ONE correct way to interpret the Scripture and anything the deviates from that is heresy!” Of course, I know heresy is still a concept in Judaism, but there still seems to be a lot more acceptance of multifaceted interpretations of the text.