No. The rapper/actor Drake (Aubrey Graham) was not involved in the 2007 film Charlie Bartlett—not in the cast, not in production, not in any capacity.
The film stars Anton Yelchin as the titular wealthy teen who becomes an unofficial psychiatrist to his public high school peers, with Robert Downey Jr. as the principal and Kat Dennings as his daughter. Drake's acting career at the time was limited to Degrassi: The Next Generation (where he played Jimmy Brooks from 2001–2009); his film debut came later with Ice Age: Continental Drift (2012, voice) and Anchorman 2 (2013, cameo).
The confusion may stem from the similar-sounding names or Drake's later ubiquity—but in 2007, he was a Canadian teen actor on a niche TV show, not a Hollywood film presence.