Not necessarily. All of their LGW, DSA and CWL (apart from SSH*) routes are to the EU so they can keep the aircraft based there on the Hungarian register.
*Not sure on the requirements for UK-Egypt. Is it possible to keep that route on an EU register?