Not exactly. It’s more like asking the defendant, “Do we have to prove you are guilty, or are you going to save us the effort?”
You are free to answer “Not guilty” even if you did it. It doesn’t mean “I’m innocent”, it means “I’m not admitting guilt”. In other words, “Prove it”.