Yeah, that's kind of correct but it is more nuanced than most realise. For example if the foul was trying to stop a counter-attack or similar then yes, no need to issue a yellow card as by playing advantage the offender hasn't succeeding in preventing the attack.
In certain other situations...