Hello

I'd like to ask about "that" and "it".
If someone answer " I didn't know that", can I use "it" instead of "that"like " I didn't know it"?

Thank you.