No. Tom Hanks is not in Notting Hill (1999).
The male lead is Hugh Grant (William Thacker). The female lead is Julia Roberts (Anna Scott). Tom Hanks has never appeared in a Richard Curtis romantic comedy.
Possible confusion: Both are beloved, Oscar-winning American (Hanks) / British (Grant) everyman leads of the 1990s–2000s.