Brake Master Cylinder Question

Well My brake master is toast on my 240sx, so its time for a new one. I was just wondering if I buy a Z32 one, will it work fine for with my stock brakes? I’m going to be upgrading to Z32 brakes so I just dont want to buy a new 240sx one and then replace it down the road when I get my new brakes.