The official website for The Settlers of Catan

Question about Base Game Seven and Robber - May I move the robber twice during my turn – the first time by rolling a “7” and the second time by playing a Knight Card?

Answer

Yes. Playing a Development Card is independent from the dice roll result.