Yes, for inline SVGs, putting its text alternative in its <title> element is well-supported. See Pattern #5 in this excellent article [0] by Carie Fisher.
That's a separate issue from ensuring an inline SVG is still visible regardless of a site's dark or light mode or visible when a user uses their device's Contrast theme (aka `forced-color`).
[0] https://www.smashingmagazine.com/2021/05/accessible-svg-patt...
It generally works fine, despite the extra work, but I've always hated the extra work for being slightly more stupid than I want to put my name to.