Yes, although not essential to the plot line, she is important to the story. Without Lady Macbeth, there would be no tragedy associated with Macbeth because he wouldn't be tempted by evil things to do.