[jQuery] can all jQuery code be included in just one $(function(){}); ?

[jQuery] can all jQuery code be included in just one $(function(){}); ?


I Include my javascript in an includefile. Which is better way to
organize the jQuery code:
$(function(){
$(".myboxclass").corner("7px");
$("#myrandomdiv").corner("7px");
});
or
$(function(){
$(".myboxclass").corner("7px");
});
$(function(){
$("#myrandomdiv").corner("7px");
});
that is in two sections. Is the last just wasting space? they seem to
be working the same.
Thanks.