It is not a strict rule.
But if you try following what you proposed, I would say you'll get it right in most of cases