Is it possible to use data in your code? Yes. But is that really the general advice you’re looking for, as asked?
If you are instead trying to debug specific code and solve a specific problem then you have selected the wrong question type. If there’s no option to change the question type, can you delete it and re-post it as the correct type? When doing so, please be sure to include information about the problem and what debugging you have done.