Yes. Just watch out for pin maximum ratings (from datasheet):
Voltage Range on RH, RL, RW: -0.5V to V+.
Voltage Range Across RH and RL pins: -0.5V to V+.
DS3502
Production
The DS3502 is a 7-bit, nonvolatile (NV) digital potentiometer featuring an output voltage range of up to 15.5V. Programming is accomplished by an I²C...
Datasheet
DS3502 on Analog.com
Yes. Just watch out for pin maximum ratings (from datasheet):
Voltage Range on RH, RL, RW: -0.5V to V+.
Voltage Range Across RH and RL pins: -0.5V to V+.