So is this a single PNR or two separate ticket?
The answer is yes in both cases, but if it's a separate ticket you'll need to get the UA check-in staff to interline your bags and then give the NZ check-in staff the UA baggage tags to ensure they get loaded.