Yes, San Pedro de Atacama and Atacama as a whole is very safe as crime is low. The area to be more careful about is staying hydrated, be careful with altitude sickness, and not getting lost in the desert.