Install new master cylinder without bleeding?

I have pulled this off at least 3 times in my life. It depends on how the vehicle is built IE how much room you have to work and how the lines are routed IE you want the master end of the tubes to be the highest points. If the lines are so routed that they go above the master fittings end, you are likely screwed.

As Rusty said, bleed the master, and be CAREFUL that you get it FULLY bled. Cap it, seal the ports and try and "tip" it so the ports (while capped) are "up", screw the lines in, lightly tighten, then use what flex there is in the tubes and install the master mechanically. Put a pan/ rags etc under the master and bleed there at those fittings by cracking the fittings. You either need two people or an adjustable "push stick" to put pressure on the pedal against the seat hardware

You must be careful and thoughtful and methodical. "Sometimes" it works