Yes, Agra is safe for tourists. The level of crimes here is moderate. The environment is rather unpleasant during the summer season that you can ignore to plan a visit. Generally, it is safe for both Indian and foreign tourists in Agra.
That's why several tourists visit this city throughout the year. There are least risks involved during the trip to Agra, and people would treat you nicely too.