For example, if I am playing as the Mayan's and I have one city with the following building:
Pyramid: + 2 Faith + 2 Science (replaces Shrine)
and I have founded a pantheon and chosen the following belief:
Ancestor Worship: +1 Culture for every Shrine in your civilization
Does my Pyramid receive the +1 Culture bonus?