I don't fully understand the explanation of what you want, but I think I can guarantee that is is possible..
There are multiple ways of pairing or connecting objects.
The simplest way is via 'Containers', the manual page for them will explain it better than me.
a more flexible way and possibly what you need is to manually store UIDs (unique ID) in private variables.
First, give ObjectA the private variable 'objectBuid' or just something like 'bUID' for short..
then, when you want to pair them, (for example on creation of the objects, or on a 'connection'), Object A can store the UID of Object B like this:
set objectA.bUID to objectB.UID
and so then you can pick the right objectB that is referred to in objectA.bUID
+on objectA clicked
+pick objectB by UID : ObjectA.bUID
hope that wasn't too confusing.