Yeah, its basically a seal that prevents the user from hurting or killing himself. He used it on Rin to firstly prevent her from committing suicide which forced Kakashi to kill her in the end. With Obito, he more or less had the same intention, but states that the seal came in more handy, especially in terms of limiting Obito to what he could do at the start, before Kakashi was able to destroy the seal.