Yes, of course, that is in fact the preferable way to go. Much better than calling it manually, which is obviously prone to too few/many invocations.