Does ASLR prevent unsafe deserialization vulnerabilities?

And if "yes" then how? I was inclined towards yes until I discussed it with my classmate all the time (doing a module on software security, is my first encounter with this kind of thing)