It will be digitized, subject to the voltage limits, precision and frequency limitations of the A2D converter.
For example, if your A2D acquires 5K samples/second over a voltage range from 0 to 4 volts with a precision of 8 bits, and you feed in a digital signal that varies between 0.5 and 2.5 volts, and consists of pulses that are 1 ms wide, at a repetition rate of 500 pulses/s, the A2D output might look like this (in decimal):
31, 32, 31, 30, 32, 90, 164, 160, 162, 161, 104, 29, 31, 30, 32, 95, 163, ...
If you plot the numbers on a graph you'll see a rough reconstruction of the original wave.
In practice, digitizing signals with sharp edges (such a digital signals, but also many analog signals from sensors) requires careful attention to the frequency content of the signal. This is normally done by applying a low-pass filter to the signal before digitization.