Ah, sure. But in that case it's not a huge deal, you just wait, or you work out a deal with your landlord. Most of the time if you talk to them they'll be ok with working with you to sublet your apartment for the balance of your lease.
This depends hugely on where you live. Good luck trying this approach with an apartment complex in Dallas, TX, for instance. (We did. We failed. We paid.)
(Some more context - I was long past college when this happened, and got a job offer in New York where I live now.)