How to integrate all jquery code?

How to integrate all jquery code?

hi,

i have use few jQuery Plugin in one page, so before the <head> have more javascript code like this:
<script type="text/javascript">
    $(window).load(function() {
     .........
</script>

<script type="text/javascript"> 
$(document).ready(function() {
.........................
</script>

<script type="text/javascript">
$(document).ready(function(){
.........................
</script> 

can i wirte all code in a .js file ,and make it clean....?