Yes. You may print to stdout for debugging purposes and it will not affect the judgment of your solution. However, doing so will most likely increase the runtime of your program and you may get Time Limit Exceeded or Output Limit Exceeded due to too much extraneous output.
Printing to stdout is very helpful in debugging using the Run Code button, however we strongly suggest you remove all stdout printing prior to submitting your solution using the Submit button.