Yes, Claire Danes and Jared Leto got along very well! They both starred together in the movie "My So-Called Life" in the mid-1990s and shared many scenes together.
From what we can tell, they had a great time working together. They have both spoken fondly of their time together, and even recently reunited for a photoshoot in 2018. So it looks like they are still good friends!