Can I stack ND Filter and Polarizer together?

I’ve seen some images of long exposure photography with a polarizing filter. I was wondering if I could use an ND and a polarizer together. Will the polarizer have the same effect? Will the image quality be affected? Both filters are from the same manufacturer.