They are harmless to early pregnancy and baby. As you told that
pregnancy test was positive after taking medication..before that you didn't know. So its alright. Not to worry.
Next Steps
Can continue the pregnancy. If it is precious pregnancy then be more careful.
Health Tips
More cautious in first trimester and last trimester. Take support of HCG in early pregnancy if required or adviced by your doctor.