This is up to you. Sure, you can do this. But won’t you be sorry if the person doesn’t actually know who you are? Often times, people are making a 50/50 guess at best.
Also, you’ll need to shout out something like, “I’m going to self-identify!” Be sure you do this before he actually says, “I know my neighbor!”