Of course. `new`ing scope class is only allowed in function, and it will be allocated on stack.