Yes, if the same PIN is listed in the list "Digital I/Os" as in the list "Analog inputs" then the PIN can be used with both the "DIGIN" and "ALGIN" blocks. Alternatively you can also generate the digital value from an analog value with "ALGIN" and a "COMPARATOR".