Nexplanon and pregnancy?

So I just got my Nexplanon inserted on the 19th (the day my period was supposed to start but it hasn't and it's been two days so I'm stressed) and I took a pregnancy test beforehand but they put it in anyway. Would my doctor put the Nexplanon in if I was pregnant?