Can predictive models be used for causal inference?