Not according to WCAG and the HTML spec with regard to the alt attribute. I'm glad that Mastodon's culture sort of cares about the basics of accessibility, but some of this stuff really is arbitrary and is contributing to fewer people making their content accessible since it unnecessarily complicates things.