Yes you can. You need to tell the op-1 what midi channel to listen to. See section 13.3 and 13.4 of the op-1 manual. https://teenage.engineering/_img/54b7f9bf8681400300255cab_original.pdf
Then you need to tell the op-z what you want it to send over midi.
https://teenage.engineering/guides/op-z/midi
This guys video goes over the process if you learn from watching others better than reading manuals. It’s not my video. https://www.youtube.com/watch?v=Ykp8S8l4Arw
You can find a bunch of info and a long conversation about op-z midi here - Op-z MIDI Thread If you have more specific questions you should post them there instead of creating a new thread.
I hope all that helps.