Yep, AR will only allow the safety to be engaged when the hammer is back.
Unlike a bolt safety or some trigger safeties the AR type rifles will not engage the safety unless the trigger tail piece is depressed by the hammer so the safety can rotate.