Yup, this is exactly the way to do this.