I was prescribed this medication after I had a laproscopic surgery. I only needed them for a week. I have not heard of it causing withdrawal symptoms if you use them as perscribed.
It shouldn't have any affect on your baby the opiates/narcotics prescribed by a Doctor (not street drugs lol) do not pass the placenta.
I would see your dr just to be sure, if you are prescribed the tablets then it should be absolutely fine.
Good luck