Question for cloth diapering mommas!

Nira • Wifey.Mommy.Happy
We are going to cloth diaper this baby, so I've been researching soooo much..... But one thing I'm confused on.... 
We plan to get a diaper pail and use a waterproof/reusable liner..... But how do you wash the liner? Can you just throw it in the wash with the diapers?