Yes, what you said.
Also, to me, the most important rule of child-rearing is to always be 100% clear with them as to your expectations. They tend to behave in a manner that is generally consistent with well communicated and enforced expectations. Plus they are happier and more confident, because they know what to do.
Kids really do want boundaries.
They feel safe when they know they’re in a controlled environment.