In theory.
In practice, if I give you a random analog box, transforming it into an accurate DSP algorithm it's an extremely difficult problem.
Which is why people instead of doing that, they recreate the "idea" (reverb, delay, ...) digitally, but it's not a copy.