I mean you’re doing yourself a disservice if you have no knowledge of any religious text. This is coming from someone atheist adjacent(?) (don’t ask idk either). But like it or not, religion shaped art, social structures and wars for centuries. You’d benefit to have like, some basic understanding of religious texts just to get the context behind how societies were shaped for so long
I think analyzing it for strictly literature purposes might be fine? Idk. I went to a private school (didn’t have to read the Bible, it was nondenominational) and there were some books and short stories where I was struggling to analyze things. I’m Hindu (not super religious though) and my English teacher told me the allegories I wasn’t seeing were basically all Biblical allegories