You're likely thinking of A Walk to Remember (2002) starring Mandy Moore as Jamie Sullivan and Shane West as Landon Carter. Dustin Hoffman and Snoop Dogg are not in this film.
Memory may have blended multiple films. If you recall other details (plot points, other actors, release year), share them for accurate identification.