No, in the episode, "Kakashi Chronicles PT. !" it shows how Rin got captured by the enemy and when Kakashi wanted to proceed with the mission (because Kakashi always followed the rules after his father's death). After that, Obito got mad that Kakashi didn't want to save Rin first and that's when the quote was born.
"Those who break the rules are scum but those who abandon their friends are worse than scum"
- Obito Uchiha
Obito then proceeded to go save Rin