slight uti in pregnancy

I'm 4 weeks today and I've been tested for uti at the doctors and she said I have a slight uti
And gave me amoxicillin 
Stupid question 
But is it safe to take these while early pregnant? Has anyone else took these???
Thank you