Is the statement the boy denied that he broke the window correct?
I had to think about this for a moment. Yes, it is correct if
the underlying assumption is that the boy in fact broke the window,
and he is not willing to admit it. If he did not break the window,
it is probably better stated as "The boy denied breaking the
window".