An unpaired Apple remote will emit IR codes which are recognized by all Apple devices (pairing ID #0).
A paired Apple remote will emit IR codes recognized only by the Apple device with which it is paired (pairing ID #1..#255).
So you should pair first, and then learn the IR codes emitted from the paired remote.
(also see
[Link: filewell.com] and
[Link: spinics.net])