Advice needed

Found out I'm pregnant and I'm 8 weeks pregnant. I've been given by my doctor amoxicillin antibiotics as I've got chest infection. Does anyone know if it's ok to take them and that they won't harm my baby?? As don't want to take them if it does 
​Thanks x