No, it doesn’t work that way. The static variable remains so because it retains its actual value in any such case.