No. Leonardo DiCaprio did not appear in Free Willy (1993).
The child lead was Jason James Richter (as Jesse). DiCaprio's breakout film roles arrived the same year: This Boy's Life (De Niro's son) and What's Eating Gilbert Grape (Arnie — first Oscar nom). He was 18–19; Free Willy filmed earlier with a younger cast.
Common confusion: both are 1993, both involve young male leads, both became huge stars. But different movies, different boys.