Youre the one who write those words.
They're not real people.
You can decide whether the characters were aware or not, and you're the one who decide whether the character wants to eat, wants to do adventure, wants to misbehave, wants to be freed from fate, wants to fight the gods, or just want to live peacefully.
You're the one who dictate them, and the one who may give them freedom, the one who write their "misbehavior", and even write what they'll do with their "freedom".
You're the one who decide what happens before the story and what happened after the story, because you're the author.
The story simply ends if you just leave them be and not continuing your words.
The character is incapable of misbehaving until you write them being capable of misbehaving in first place.
2D character drawing and writing has no power or knowledge on it's own, it's the 3D creator who shape them to what they're.