I think it's difficult to reconcile dialectical materialism with the Judeo-Christian representation of god we have in the west. However, a belief in Spinoza's god being the entirety of matter and the physical laws making it work doesn't strike me as contradictory.
In any cases, we should respect all our comrades and their beliefs.