AR-15's are typically chambered for 5.56. You can safely fire .223 ammo in them, however .223 is generally not loaded to as high a pressure (velocity will be less), and depending on the rate of twist of the barrel some bullets, typically lighter varmint rounds, may not shoot accurately.
More info
here.