Combining Analog and digital type input for AnalogPin

Is this arrangement will do the job ?

Do you really want to do that? What do you think T1's b-e junction will do when power is switched to it?