When you say "to my car's alternator", do you mean connecting to the 12Vdc output (after the regulator), or to the windings (before the regulator)?
If it is to the 12V output, then generally, yes, it is ok, provided that your device will tolerate overvoltage, up to about 16V. A car's system voltage is rarely actually 12V - usually closer to 14V.