No matter your terrible behavior, it will all work out for you in the end.
Emma's title character behaves rather atrociously throughout her namesake novel. Meddling in her loved ones' relationships, acting cruelly in some reactions with her acquaintances, and refusing to listen to reprimand when she behaves inappropriately, it would seem that Emma does not deserve a happy ending. However, Emma lands a handsome rich guy and somehow her friend is able to marry the kindhearted man she'd previously spurned at Emma's request. While her bad behavior goes without lingering consequence in the novel, this type of behavior will ensure unhappy relationships in the real world.
Source: Miramax Films