Did I hurt baby?

So I was really bloated, nauseous, and constipated for a few days. I decided to take dulcolax. Needless to say I have severe diarrhea.

I took a pregnancy test this morning after I had already taken the dulcolax (the dulcolax was still not working) and found out I’m pregnant.

Is this going to affect my pregnancy!?