A chainsaw belongs in a case or scabbard, tied down.
Yes, you need a chain guard and it needs to be secured — no free rides in the truck bed.
Most states require a chain cover (scabbard) for transport. Even where it’s not law, it’s stupid not to use one. A loose chain catching on something can flip the saw or start cutting whatever it touches.
Fuel spills are the other risk. Tighten the gas cap. If you’re hauling it inside a car (not recommended), drain the fuel or at least lay it on its side with the cap up. In a truck bed, strap it upright so it doesn’t