You may be able to do it as you describe but both the windshield install and the headliner will be much easier to install windshield first and then headliner. The headliner rests on the windshield rubber until the inside windshield trim is installed.
Chuck