Rollcages and headliners

My car needs a new headliner and I'm also gonna cage it. With a good tight fitting cage can you still install the headliner or should a new headliner be put in first? Obviously it would be easier to get cage done with no headliner if its doable. I've never put a headliner in anything.