Please help me to find this movie

I saw a movie in my childhood with my grandpa which he really liked. But I don’t know what the film’s name was. This movie is about a robot that turns all parts of its body into living parts except its head and eventually fall in love with a girl.

Bicentennial Man (1999)?