Help me ladies

I’m 12dpo.. I have arthritis in my back which sometimes causes pain to even breathe. The only way to help ease the pain is with 5mg diazepam, 30mg Codeine and voltarol. I’ve had to take some today 😭 if I am pregnant would this have any effect? I’m just soo scared that I could possibly be harming a baby, but the pain it’s just excruciating. I would rest but have a 2 yo boy who is always on the go so I need pain relief 🙈🙈 I won’t do a test till af is due or a couple days after as af has been known to be late by a day or 2