Combining Analog and digital type input for AnalogPin

Is this arrangement will do the job ?

Sincerely
-bino-

sig_combine_B1.png