You can put barbed wire on any fence if the local building codes and homeowners association permit it. Adding fence extender arms with spirals of razor wire on top of fencing is a good way to increase property security.
Not all cities allow homeowners to install barbed wire fences since they can hinder the efforts of firefighters and medical teams in an emergency.