Yes and it can be a challenge. We married before I had really solidified my views on it. Ironically my views became solid AF because I started reading the Bible. Fixed me up right away.
We get by because she does not push it on me and I don't really talk to her about it. I get along with her and her family because they are really good people who choose to follow the best parts of the Bible. They are relatively progressive, meaning they are tolerant of other religions, accept abortion more or less along the lines of Roe v. Wade, etc. I do wish she was an atheist because I liken religion to a cult and sometimes when she makes negative comments about MAGA people I have to hold my tongue. But otherwise she's great. She takes care of me and I her. Been married 20 years.
If anything happened to her I think I would actively seek a new mate who was atheist.