Denmark joined because the US invoked Article 5 after 9/11. It was more about making sure they're protected if they ever need it in the future, so I'd say it was absolutely in their interest. This was the first time Article 5 was invoked, not going would've killed NATO and their own security. The invasion of Ukraine has solidified their reasoning.