Was speak based on a true story?

Laurie Halse Anderson was raped 3 months before her ninth grade year. She based the book on what happened to her.