Yes, You can change the access specifier but the out put will not be as expected.try an example to check