No, Milk was a deliberate target. Mayor Moscone was prepared to let White have his job back on the Board of Supervisors after he quit in a fit of pique. Milk read Moscone the riot act and told him NOT to appoint White to fill his vacancy. And that is what set off White.
I always read that White wanted Moscone dead, and Milk happened to be in the office at the time.