Unfortunately, that is not the case. As you can see, the transformation box is not constrained by the selection. Instead, it includes all the pixels in the bottom-most layer. It will even change if I select a different layer at the bottom of the stack.
![]()