Sort of. They really are two separate stories, so it is kind of difficult to compare.
However if I compared how much I liked each I would say I would pick the first two books over their respective movies, but I would pick the 3rd movie over the 3rd book.