If you are doing a modular course, then you need a PPL first. If you are doing an integrated course, then you are undergoing a structured course involving flying and studying.
So no, you can't just do the exams on your own with no flying experience. Much of the course would likely make no sense and I can't think why on earth you'd want to do that.
Cheers
Whirls