Does Robert Pattinson play Harry Potter in the Harry Potter movies?

No, Robert Pattinson plays Cedric Diggory.