Got a D- (19%) on my first Java class's exam :(

Is it too late to drop the class and pick it back up next year, with the intention to devote more time to it then?