I think the answer depends on whose code we are talking about. In my experience, guys and girls handle this differently. For guys, the general rule seems to be if your friend wasn’t in love with the chick or didn’t have feelings then she is free bait. Don’t quote me on this. 1) I am not a man. 2) some men are a little more in their feelings than others. You can’t share everyone with the team. For ladies, at least in my case, you do not talk to your friends ex-anything. It is usually a turn-off that your friend has already dealt with them. Although this should be the standard rule, there may be a little wiggle room depending on the person.
If you really can’t seem to pull yourself from this person, approach your friend about it. Let them know you are feeling someone from their past and wanted to know if it was cool if you took it there with them. If your friend was ever in love with this person or you know they had deep feelings for them, just go ahead and cut your losses because there is no way in hell that this would be acceptable.
If you are not sure how your friend will react or you guys haven’t really talked about what the code is, now is probably a good time to make sure you guys are all on the same page. There are so many friendships that have been broken and lost all because someone broke the code. Don’t let that be you. Adhere to the code man!
*** This photo was borrowed from http://www.123rf.com/photo_2731155_a-magnifying-glass-zooming-in-on-the-word-code-in-red-surrounded-by-zeros-and-ones-of-the-binary-pag.html . Please click on the photo to be redirected.