no. If you change faction, you have to build magic guild for that faction. If you switch back to that faction in the future, your spells will remain as you had them before.
also when you change faction for example between de and demon , though they have almost the same spell set for level 5 you need to rebuild the magic guild for the demon