The AD5220 datasheet ( do you know what that is ?) states maximum current between pot terminals is +/- 20 mA. Vdd is 5V (7 max). The manual pot is 2 W. ( I = P/V = 2/5V = 0.400A. (400 mA)
This means the manual pot is rated for 400 mA while the digital pot is rated for 20 mA.
Conclusion: The digital pot CANNOT be used to replace the msnual pot. Thst manual pot is expensive. Such an exoensive pot would not have been chosen by the equipment manufacturer iwere it not for the fact that it can tollerate 400 mA.
Your post cannot be answered based on the information (or LACK THEREOF:ie. schematic of circuit) you presented, but based on what you did present, the answer is NO.