Yes, and the code I posted does exactly that.