Does head hair grow back differently if you shave it off?

No. Your hair follicles don't care how short you cut your hair :) as long as you don't shave your hair so close that the tips of the remaining hair shafts curl into the skin surface, causing razor bumps, you won't notice any changes in how your hair grows back.