Can headliner be installed with glass in?

Tried doing the head liner on my 64 Valiant. The rubber gasket was just stiff enough to make it a pain. Finally, decided to remove the windshield and back window. Of course there was some rust at the pinch weld. So it makes sense to fix that now. Of course the windshield has some edge fogging, and minor pitting\scratching, so really should use a new windshield. Naturally with a new gasket. Back window is in good condition (luckily, not available new). Not going to try and install it with the old gasket (had to cut it to remove the window, and not chance breaking it). Talk about project creep.