I use a carrier for all of my cats and if I am going any distance (i.e. greater than a couple of blocks), I actually buckle the carrier in using a seat belt.

If you are in an accident and the carrier is not buckled in, then it will go "flying".