Another danger from using cocaine is the risk of infection when using unsafe ways of taking cocaine (like using dirty needles when injecting cocaine). A person can get infectious diseases like HIV or Hepatitis C when they use cocaine in these ways.