About the debate between determinism and freedom, Harry Frankfurt says that "it is possible for a person to be morally responsible for doing something, though he or she could not have done anything else."
https://www.researchgate.net/publication/269662226
Conference Paper Harry Frankfurt: about the debate between determinism and fr...