I tried this out and you don't, kind of annoying.
What about if you have Engineering but not a granary in a city? And what about if you have engineering but haven't built a granary, do you get it when you build the granary? I would guess not, but I'm not sure.
Also, if you fill out Piety, then...