Yes. I think you got the ideas.
There are more than one way to do it. You can try other options, too! ;)