If the parties consent to it, it’s fine. When it’s hidden and nonconsensual is where the problem arises.