Yes you can, with Set Attribute, Mendix 8.8 have some fixes on the aria labels, so hopefully you do not need any longer.
Though be care full set attribute will change the DOM, starting from Mendix 8 some widget are rewritten to React.
When conditional visibility is changed on the widget it might re-render and lose your change. In that case make sure you set attribute hides and shows at the same time.
If that does not work you can try my (unsupported version) that should work with pluggable widgets. https://github.com/Andries-Smit/set-attribute/releases