Change of delay time may cause clicks
The main ways to delay a sound in Max are demonstrated in the examples from this site Simple delay of an audio signal and Delay with tempo-relative timing. You might want to take a look at those examples and read the associated text to review how they work, and what their pros and cons are.