Yep... but it takes the first image in the thread.... so if you are in a thread with multiple images, only the first gets applied, no matter if you share a post with another image on it. It works, but it is not the best solution (which is something XF needs to address if possible).
I use an add-on to resolve the base issue myself, as it grants a few more features.
This is a collection of several options related to XenForo meta tags and miscellaneous display tweaks. This is how, for example, we are using attachments for the og:image at Cameraderie photography forum. After installing go into your XF Options...
aliensoup.com