As was already commented on... Miles had a notorious habit himself.
In many ways, Jazz of the Bebop era and beyond was defined by heroin and other drug use.
To this day there are unapologetic users who swear they will continue until they pass on their own or heroin and such carries them away. Some have actually found sobriety, or so they claim...
As to whether they ever recorded high or not... that is likely only known by a handful of people and will forever be relegated to urban mythology.
Stories of Tchiakovsky, Charlie Parker, Loius Armstrong, The Dead and Jerry Garcia, Jimi Hendrix, Syd Barrett, Dave Navarro, Anthony Keidis... all just off the top of my head...
And how many more?