If they say that all of the carbons in hydrocarbons are sp3 hybridized, then they are incorrect. In a strict definition of hydrocarbons as those compounds containing only carbon and hydrogen, there can exist multiple forms of hybridization on carbon. That is, hydrocarbons can further be split into saturated and unsaturated hydrocarbons. In saturated hydrocarbons, all carbons are sp3 hybridized. In unsaturated hydrocarbons, the carbons at the site(s) of unsaturation can be sp2 or even sp hybridized. An example of sp2 hybridization on a hydrocarbon would be simple ethylene. An example of sp hybridization on a hydrocarbon would be acetylene.