Are pterosaurs predators?

Yes. Dinosaurs are prey.