It is safe for pregnancy the stress from the pain is worse on the baby.
I was prescribed percocet for kidney stones in my last pregnancy. My doc said it's bad for you to be in pain because it stresses the baby out. If your ob have it to you and said to take it, just take it when it hurts. You don't want you or baby to become addicted. Good luck and I hope you feel better! ♡ :)