Yes. Many lawyers will recommend you get your first in Australia, which is a "safer" bet, but there's no requirement for that. You can apply at any U.S. Embassy or Consulate which processes nonimmigrant visas, outside the US.