if it was posted in any sort of way that could be linked back to them, or if it was a very close friend, then yeah. otherwise, while it's possible they may be blindsided to eventually discover it, it's guaranteed they'll be blindsided and embarrassed if you let them know about it.