With rare exceptions (such as the original version of the EF 24-70/2.8L), lens hoods for zooms are only maximally effective at the wide end of the zoom range. In terms of what a lens hood is intended for, namely to improve images by reducing flare and increasing contrast, using a shorter hood than the one Canon provides with (or recommends for) a given lens reduces the utility even at the wide end.
I suppose if your only goal is to have some additional physical protection for the front of your lens, using a shorter hood would still provide that.