The answer is no but ......
If you have the written permission of each member state to undergo theoretical training in one member state and flying training in another, you can.
You would need this written permission before you start and you can't assume that it will be given.
But it is possible.
Cheers
Whirls