jQuery .click(function() functions need to be inside $(function() {});?

jQuery .click(function() functions need to be inside $(function() {});?

I don't really understand. Should ask a forum about this.