Cortisone shot while pregnant?

I am 23 weeks pregnant and hurt my shoulder somehow. I have been in a lot of pain. My

OB said it is safe to have ortho give a cortisone shot. I’m sure he knows what is safe and what is not but I’m still not sure of my choice. Has anyone else had cortisone shots for pain while pregnant? What is your experience/thoughts? Thanks in advance!