Pain killers / pregnancy

If you took pain killers twice in your pregnancy during 20 weeks

Will they take your baby away?

Or do they only drug test if they suspect you’ve been abusing drugs

Thing is I’m not abusing drugs I am dealing with unbearable pain needed it to cope those two days.

If I pass urine test at hospital and it’s clean will they have any reason to drug test my baby?