Yes, I have fired the M16 A1 at 500 meters. Yes you can hit things with it that far out.
And a pinch of sand will jam that P.O.S. so tight that you will need an armorer to clear it.
If range is a consideration the old M-14 is good to 1,000 meters.