is the exposition the beginning of the story where characters and setting are introduced

Yes, that is correct. The exposition is the beginning part of the story where the main characters are introduced, the setting is established, and important background information is provided. It sets the stage for the rest of the story.