No. Cameron Diaz voiced Princess Fiona in the Shrek franchise (2001–2010). Julia Roberts was never involved in the series.
The confusion may stem from both being A-list actresses in the early 2000s, or from Roberts’ voice work in other animated films (e.g., Charlotte's Web 2006 as Charlotte). But Fiona is unmistakably Diaz.