Yes, that's what the Table Rate module does. There's an explanation of how to set it up when you install the option and configure it.