has anyone taken Percocet during pregnancy?

🎀S
Let me start off by saying it was a last resort for me as I couldn't take the gallbladder pain I was getting anymore, last night. This medicine has been prescribed to me while I was 26 weeks pregnant due to my frequent gallbladder attacks. I'm now going on 31 weeks and this is the first time I've taken it. My doctor said I could take it but there is a risk of addiction. So far I've only taken one and I don't plan on taking it frequently, typically a Tylenol is enough to take the edge off but last night it was pretty unbearable even after taking the medicine 😰
I'm just wondering if anyone else has taken it and how things worked out for them.