Yes.  There are some assumptions that must hold for all of this to work.  I'll try to write them down somewhere in the code/doxygen comments.