Is it possible to set the aria-label dynamically?

I want to be able to set the aria-labels for a set of buttons dynamically with the data that they’re connected to. The buttons are linked to a database so that each button links to a different external site and I want screen readers to easily be able to read where they link to without the text having to differ.