Tally lies a lot, but these aren't simple lies, like telling a teacher, "of course I'm listening" or "I've never heard of Shmoop." Tally's lies are part of her betrayal: she's lying to people who expect the truth from her, both her friends (Shay, David) and her blackmailer (Dr. Cable). Uglies reminds us that you can only betray people who trust you. Whether Tally betrays her friends for her own desires or betrays her own desires to save her friends, betrayal is useful for us because it shows what Tally cares about most.
Even when betrayal is accidental, Uglies teaches us that we should feel guilty about it and work to fix our mistakes/betrayals (making betrayal much less fun).
Uglies shows that betrayal hurts everyone, both the betrayee and the betrayer.