Depends on what your religion is I guess. Many Christians, for example, are dogmatic in their beliefs that the word of the bible is correct. Others modify their beliefs (as I said earlier) and others abandon them all together. If you keep modifying your beliefs to fit with science, would you really call that religion?
Definition of "religion" according to Princeton University:
a strong belief in a supernatural power or powers that control human destiny; "he lost his faith but not his morality"
an institution to express belief in a divine power; "he was raised in the Baptist religion"; "a member of his own faith contradicted him "
wordnet.princeton.edu/perl/webwn
I see nothing in there that precludes a religion from changing with the times.